$tokenStorage
$tokenStorage : \OAuth2\ResponseType\AccessTokenInterface
$tokenStorage : \OAuth2\ResponseType\AccessTokenInterface
$refreshStorage : \OAuth2\Storage\RefreshTokenInterface
__construct(\OAuth2\Storage\AccessTokenInterface $tokenStorage, \OAuth2\Storage\RefreshTokenInterface $refreshStorage = null, array $config = array())
| \OAuth2\Storage\AccessTokenInterface | $tokenStorage |
|
| \OAuth2\Storage\RefreshTokenInterface | $refreshStorage |
|
| array | $config |
|
createAccessToken(mixed $client_id, mixed $user_id, string $scope = null, boolean $includeRefreshToken = true) : array
Handle the creation of access token, also issue refresh token if supported / desirable.
| mixed | $client_id |
|
| mixed | $user_id |
|
| string | $scope |
|
| boolean | $includeRefreshToken |
|
revokeToken( $token, null $tokenTypeHint = null) : boolean
Handle the revoking of refresh tokens, and access tokens if supported / desirable RFC7009 specifies that "If the server is unable to locate the token using the given hint, it MUST extend its search across all of its supported token types"
| $token | ||
| null | $tokenTypeHint |