shotbow/yii2-oauth2-client
最新稳定版本:v1.0.1
Composer 安装命令:
composer require shotbow/yii2-oauth2-client
包简介
Yii2 AuthClient for The Shotbow Network
README 文档
README
This project creates an OAuth 2 client for Yii2's AuthClient system. It will be kept up to date with Shotbow's OAuth2 requirements.
Requirements
- PHP 5.4 or greater
- Yii 2
- Composer
How to use
composer require shotbow/yii2-oauth2-client- Add the following to your Yii2
componentsconfiguration:
'authClientCollection' => [
'class' => yii\authclient\Collection::class,
'clients' => [
'shotbow' => [
'class' => Shotbow\Auth\Client::class,
'clientId' => 'SHOTBOW CLIENT ID',
'clientSecret' => 'SHOTBOW CLIENT SECRET',
'scope' => 'SHOTBOW REQUESTED SCOPES',
],
],
],
- In the controller you wish to add this to, add the AuthAction as described in the Yii2 Guide
That's it! The rest is up to you, the developer!
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-31