class AbstractGrantTypeHandler implements GrantTypeHandlerInterface

Shared grant type implementation.

Properties

protected $tokenStorage
protected $encoderFactory
protected $validator
protected $modelManagerFactory
protected $tokenTypeHandlerFactory
protected $userProvider

Methods

__construct(TokenStorageInterface $tokenStorage, EncoderFactoryInterface $encoderFactory, ValidatorInterface $validator, ModelManagerFactoryInterface $modelManagerFactory, TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory, UserProviderInterface $userProvider = null)

No description

string
checkClientId()

Fetch client_id from authenticated token.

array|null
checkScope(Request $request, $clientId, $username)

Fetch scope from POST.

Details

at line 40
__construct(TokenStorageInterface $tokenStorage, EncoderFactoryInterface $encoderFactory, ValidatorInterface $validator, ModelManagerFactoryInterface $modelManagerFactory, TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory, UserProviderInterface $userProvider = null)

Parameters

TokenStorageInterface $tokenStorage
EncoderFactoryInterface $encoderFactory
ValidatorInterface $validator
ModelManagerFactoryInterface $modelManagerFactory
TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory
UserProviderInterface $userProvider

at line 63
protected string checkClientId()

Fetch client_id from authenticated token.

Return Value

string Supplied client_id from authenticated token

at line 85
protected array|null checkScope(Request $request, $clientId, $username)

Fetch scope from POST.

Parameters

Request $request
$clientId
$username

Return Value

array|null Supplied scope in array from incoming request, or null if none given