$accessToken
$accessToken : \OAuth2\ResponseType\AccessTokenInterface
$accessToken : \OAuth2\ResponseType\AccessTokenInterface
$clientAssertionType : \OAuth2\ClientAssertionType\ClientAssertionTypeInterface
$scopeUtil : \OAuth2\ScopeInterface
$clientStorage : \OAuth2\Storage\ClientInterface
__construct(\OAuth2\ResponseType\AccessTokenInterface $accessToken, \OAuth2\Storage\ClientInterface $clientStorage, array $grantTypes = array(), \OAuth2\ClientAssertionType\ClientAssertionTypeInterface $clientAssertionType = null, \OAuth2\ScopeInterface $scopeUtil = null)
Constructor
| \OAuth2\ResponseType\AccessTokenInterface | $accessToken | |
| \OAuth2\Storage\ClientInterface | $clientStorage | |
| array | $grantTypes | |
| \OAuth2\ClientAssertionType\ClientAssertionTypeInterface | $clientAssertionType | |
| \OAuth2\ScopeInterface | $scopeUtil |
handleTokenRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response)
Handle the token request.
| \OAuth2\RequestInterface | $request |
|
| \OAuth2\ResponseInterface | $response |
|
grantAccessToken(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response) : boolean|null|array
Grant or deny a requested access token.
This would be called from the "/token" endpoint as defined in the spec. You can call your endpoint whatever you want.
| \OAuth2\RequestInterface | $request |
|
| \OAuth2\ResponseInterface | $response |
|
addGrantType(\OAuth2\GrantType\GrantTypeInterface $grantType, string|null $identifier = null)
Add grant type
| \OAuth2\GrantType\GrantTypeInterface | $grantType |
|
| string|null | $identifier |
|
handleRevokeRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response)
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response |
revokeToken(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response) : boolean|null
Revoke a refresh or access token. Returns true on success and when tokens are invalid
Note: invalid tokens do not cause an error response since the client cannot handle such an error in a reasonable way. Moreover, the purpose of the revocation request, invalidating the particular token, is already achieved.
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response |