\OAuth2\GrantTypeGrantTypeInterface

Interface for all OAuth2 Grant Types

Summary

Methods
Constants
getQueryStringIdentifier()
validateRequest()
getClientId()
getUserId()
getScope()
createAccessToken()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getQueryStringIdentifier()

getQueryStringIdentifier() : string

Get query string identifier

Returns

string

getClientId()

getClientId() : mixed

Get client id

Returns

mixed

getUserId()

getUserId() : mixed

Get user id

Returns

mixed

getScope()

getScope() : string|null

Get scope

Returns

string|null

createAccessToken()

createAccessToken(\OAuth2\ResponseType\AccessTokenInterface  $accessToken, mixed  $client_id, mixed  $user_id, string  $scope) : array

Create access token

Parameters

\OAuth2\ResponseType\AccessTokenInterface $accessToken
mixed $client_id
  • client identifier related to the access token.
mixed $user_id
  • user id associated with the access token
string $scope
  • scopes to be stored in space-separated string.

Returns

array