Refresh Token Grant Type for OAuth2 Server
This library adds a new grant type for OAuth2 Server: Refresh Token Grant Type.
When access tokens are issued, a refresh token can be issued at the same time. These tokens allow to generate a new access token when it expired.
Please note that this grant type is useless without a grant type allowed to issue refresh tokens (Resource Owner Password Credentials, Authcode, custom extension grant type…).
It relies on the OAuth2 Interfaces Project.
The release process is described here.
This library needs at least
It has been successfully tested using
PHP 5.3 to
PHP 7 and
The preferred way to install this library is to rely on Composer:
composer require "spomky-labs/oauth2-server-refresh-token-grant-type" "~5.0.0"
This library only contains the logic. You must extend all classes to define setters and getters.
Look at Extend classes for more information and examples.
Your classes are ready to use? Have a look at How to use to use your grant type with an OAuth2 server.
Requests for new features, bug fixed and all other ideas to make this library useful are welcome. Please follow these best practices.
This library is release under MIT licence.