2017 © Pedro PelĂĄez
 

library oauth2-server-storage-dbal

image

borisguery/oauth2-server-storage-dbal

  • Wednesday, April 6, 2016
  • by borisguery
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

OAuth2 Server Storage DBAL (Doctrine)

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

OAuth2 Server Bundle for Symfony, (*2)

Install

Via Composer, (*3)

``` bash $ composer require borisguery/oauth2-server-storage-dbal, (*4)


## Configuration Here are the keys to override if you wish to change the default table names. ``` php $tableConfiguration = new TableConfiguration( [ 'oauth2_clients' => 'oauth2_clients', 'oauth2_access_tokens' => 'oauth2_access_tokens', 'oauth2_refresh_tokens' => 'oauth2_refresh_tokens', ] );

Usage

``` php $accessTokenStorage = new DbalAccessTokenStorage($dbalConnection, $tableConfiguration); $refreshTokenStorage = new DbalRefreshTokenStorage($dbalConnection, $tableConfiguration); $clientStorage = new DbalClientStorage($dbalConnection, $tableConfiguration);, (*5)


that's it! ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*6)

Security

If you discover any security related issues, please email guery.b@gmail.com instead of using the issue tracker., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions