class GrantTypeHandlerFactory implements GrantTypeHandlerFactoryInterface

OAuth2 grant type handler factory implemention.

Properties

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

Methods

__construct(TokenStorageInterface $tokenStorage, UserCheckerInterface $userChecker, 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 39
__construct(TokenStorageInterface $tokenStorage, UserCheckerInterface $userChecker, EncoderFactoryInterface $encoderFactory, ValidatorInterface $validator, ModelManagerFactoryInterface $modelManagerFactory, TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory, UserProviderInterface $userProvider = null, array $classes = [])

Parameters

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

at line 75
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 98
array getGrantTypeHandlers()

Get a list of all supported handler.

Return Value

array Supported handler in key-value pair.