\OAuth2\ResponseTypeAccessTokenInterface

Summary

Methods
Constants
getAuthorizeResponse()
createAccessToken()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getAuthorizeResponse()

getAuthorizeResponse(array  $params, mixed  $user_id = null) : mixed

Parameters

array $params
mixed $user_id

Returns

mixed

createAccessToken()

createAccessToken(mixed  $client_id, mixed  $user_id, string  $scope = null, boolean  $includeRefreshToken = true) 

Handle the creation of access token, also issue refresh token if supported / desirable.

Parameters

mixed $client_id
  • client identifier related to the access token.
mixed $user_id
  • user ID associated with the access token
string $scope
  • OPTONAL scopes to be stored in space-separated string.
boolean $includeRefreshToken
  • if true, a new refresh_token will be added to the response