vip9008/yii2-googleuser
Composer 安装命令:
composer require vip9008/yii2-googleuser
包简介
Enables signing in using a google account.
README 文档
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
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-07