OAuth2 Server Bundle for Symfony
Via Composer
$ composer require borisguery/oauth2-server-storage-dbal
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',
]
);
$accessTokenStorage = new DbalAccessTokenStorage($dbalConnection, $tableConfiguration);
$refreshTokenStorage = new DbalRefreshTokenStorage($dbalConnection, $tableConfiguration);
$clientStorage = new DbalClientStorage($dbalConnection, $tableConfiguration);
that's it!
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email guery.b@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.