vip9008 / yii2-googleuser
Enables signing in using a google account.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- vip9008/yii2-googleapisclient: *
- vip9008/yii2-materialgrid: *
- yiisoft/yii2: ^2.0.0
- yiisoft/yii2-authclient: ^2.1.0
This package is auto-updated.
Last update: 2024-12-15 22:46:48 UTC
README
Enables signing in using a google account.
Installation
The preferred way to install this extension is through composer.
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
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