\OAuth2\GrantTypeAuthorizationCode

Summary

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

Properties

$authCode

$authCode : array

Type

array

Methods

__construct()

__construct(\OAuth2\Storage\AuthorizationCodeInterface  $storage) 

Parameters

\OAuth2\Storage\AuthorizationCodeInterface $storage
  • REQUIRED Storage class for retrieving authorization code information

getQueryStringIdentifier()

getQueryStringIdentifier() : string

Get query string identifier

Returns

string

validateRequest()

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

Validate the OAuth request

Parameters

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

Throws

\Exception

Returns

boolean

getClientId()

getClientId() : mixed

Get the client id

Returns

mixed

getScope()

getScope() : string

Get the scope

Returns

string

getUserId()

getUserId() : mixed

Get the user id

Returns

mixed

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