Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/vip9008/yii2-googleuser
- Owner: vip9008
- Created: 2016-11-07T14:16:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-11T03:27:31.000Z (about 8 years ago)
- Last Synced: 2024-10-18T15:04:06.221Z (29 days ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```