\OAuth2\GrantTypeRefreshToken

Summary

Methods
Properties
Constants
__construct()
getQueryStringIdentifier()
validateRequest()
getClientId()
getUserId()
getScope()
createAccessToken()
No public properties found
No constants found
No protected methods found
$storage
$config
N/A
No private methods found
$refreshToken
N/A

Properties

$config

$config : array

Type

array

$refreshToken

$refreshToken : array

Type

array

Methods

__construct()

__construct(\OAuth2\Storage\RefreshTokenInterface  $storage, array  $config = array()) 

Parameters

\OAuth2\Storage\RefreshTokenInterface $storage
  • REQUIRED Storage class for retrieving refresh token information
array $config
  • OPTIONAL Configuration options for the server

getQueryStringIdentifier()

getQueryStringIdentifier() : string

Get query string identifier

Returns

string

validateRequest()

validateRequest(\OAuth2\RequestInterface  $request, \OAuth2\ResponseInterface  $response) : boolean|mixed|null

Validate the OAuth request

Parameters

\OAuth2\RequestInterface $request
\OAuth2\ResponseInterface $response

Returns

boolean|mixed|null

getClientId()

getClientId() : mixed

Get client id

Returns

mixed

getUserId()

getUserId() : mixed|null

Get user id

Returns

mixed|null

getScope()

getScope() : null|string

Get scope

Returns

null|string

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