class GrantTypeHandlerFactory implements GrantTypeHandlerFactoryInterface

OAuth2 grant type handler factory implemention.

Properties

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

Methods

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

No description

getGrantTypeHandler(string $type = null)

Gets a stored grant type handler.

array
getGrantTypeHandlers()

Get a list of all supported handler.

Details

at line 37
__construct(TokenStorageInterface $tokenStorage, EncoderFactoryInterface $encoderFactory, ValidatorInterface $validator, ModelManagerFactoryInterface $modelManagerFactory, TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory, UserProviderInterface $userProvider = null, array $classes = [])

Parameters

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

at line 71
GrantTypeHandlerInterface getGrantTypeHandler(string $type = null)

Gets a stored grant type handler.

Parameters

string $type Type of grant type handler, as refer to RFC6749

Return Value

GrantTypeHandlerInterface The stored grant type handler

at line 93
array getGrantTypeHandlers()

Get a list of all supported handler.

Return Value

array Supported handler in key-value pair