Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vip9008/yii2-googleuser

Enables signing in using a google account.
https://github.com/vip9008/yii2-googleuser

Last synced: 4 days ago
JSON representation

Enables signing in using a google account.

Awesome Lists containing this project

README

        

Google user module
==================
Enables signing in using a google account.

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist vip9008/yii2-googleuser "*"
```

or add

```
"vip9008/yii2-googleuser": "*"
```

to the require section of your `composer.json` file.

Usage
-----

Once the extension is installed, simply create web api credentials at [developers console](https://console.developers.google.com/)
and add your sign-in link to Authorized redirect URIs `[link_to_your_yii2_app]user/sign-in`.
Then add the module to your configuration file :

```
'modules' => [
'user' => [
'class' => 'vip9008\googleuser\Module',
'apiTokens' => [
'clientId' => 'API_CREDENTIALS_CLIENT_ID',
'clientSecret' => 'API_CREDENTIALS_CLIENT_SECRET',
],
],
.
.
.
],
```

Available actions
-----------------

```
/user/index
```
```
/user/sign-in
```
```
/user/sign-out
```