borisguery/oauth2-server-storage-dbal
Composer 安装命令:
composer require borisguery/oauth2-server-storage-dbal
包简介
README 文档
README
OAuth2 Server Bundle for Symfony
Install
Via Composer
$ composer require borisguery/oauth2-server-storage-dbal
Configuration
Here are the keys to override if you wish to change the default table names.
$tableConfiguration = new TableConfiguration( [ 'oauth2_clients' => 'oauth2_clients', 'oauth2_access_tokens' => 'oauth2_access_tokens', 'oauth2_refresh_tokens' => 'oauth2_refresh_tokens', ] );
Usage
$accessTokenStorage = new DbalAccessTokenStorage($dbalConnection, $tableConfiguration); $refreshTokenStorage = new DbalRefreshTokenStorage($dbalConnection, $tableConfiguration); $clientStorage = new DbalClientStorage($dbalConnection, $tableConfiguration);
that's it!
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email guery.b@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-07