class AbstractResponseTypeHandler implements ResponseTypeHandlerInterface

Shared response type implementation.

Properties

protected $tokenStorage
protected $validator
protected $modelManagerFactory
protected $tokenTypeHandlerFactory

Methods

__construct(TokenStorageInterface $tokenStorage, ValidatorInterface $validator, ModelManagerFactoryInterface $modelManagerFactory, TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory)

No description

string
checkUsername()

Fetch username from authenticated token.

string
checkClientId(Request $request)

Fetch cliend_id from GET.

string
checkRedirectUri(Request $request, string $clientId)

Fetch redirect_uri from GET.

checkState(Request $request, $redirectUri)

No description

checkScope(Request $request, $clientId, $username, $redirectUri, $state)

No description

Details

at line 38
__construct(TokenStorageInterface $tokenStorage, ValidatorInterface $validator, ModelManagerFactoryInterface $modelManagerFactory, TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory)

Parameters

TokenStorageInterface $tokenStorage
ValidatorInterface $validator
ModelManagerFactoryInterface $modelManagerFactory
TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory

at line 57
protected string checkUsername()

Fetch username from authenticated token.

Return Value

string Supplied username from authenticated token

at line 79
protected string checkClientId(Request $request)

Fetch cliend_id from GET.

Parameters

Request $request Incoming request object

Return Value

string Supplied client_id from incoming request

at line 117
protected string checkRedirectUri(Request $request, string $clientId)

Fetch redirect_uri from GET.

Parameters

Request $request Incoming request object
string $clientId Corresponding client_id that code should belongs to

Return Value

string The supplied redirect_uri from incoming request, or from stored record

at line 165
protected checkState(Request $request, $redirectUri)

Parameters

Request $request
$redirectUri

at line 185
protected checkScope(Request $request, $clientId, $username, $redirectUri, $state)

Parameters

Request $request
$clientId
$username
$redirectUri
$state