PHP Класс AuthBucket\OAuth2\GrantType\AbstractGrantTypeHandler

Автор: Wong Hoi Sing Edison ([email protected])
Наследование: implements AuthBucket\OAuth2\GrantType\GrantTypeHandlerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$encoderFactory
$modelManagerFactory
$tokenStorage
$tokenTypeHandlerFactory
$userProvider
$validator

Открытые методы

Метод Описание
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, Symfony\Component\Validator\Validator\ValidatorInterface $validator, AuthBucket\OAuth2\Model\ModelManagerFactoryInterface $modelManagerFactory, AuthBucket\OAuth2\TokenType\TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider = null )

Защищенные методы

Метод Описание
checkClientId ( ) : string Fetch client_id from authenticated token.
checkScope ( Request $request, $clientId, $username ) : array | null Fetch scope from POST.

Описание методов

__construct() публичный метод

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, Symfony\Component\Validator\Validator\ValidatorInterface $validator, AuthBucket\OAuth2\Model\ModelManagerFactoryInterface $modelManagerFactory, AuthBucket\OAuth2\TokenType\TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider = null )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$encoderFactory Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface
$validator Symfony\Component\Validator\Validator\ValidatorInterface
$modelManagerFactory AuthBucket\OAuth2\Model\ModelManagerFactoryInterface
$tokenTypeHandlerFactory AuthBucket\OAuth2\TokenType\TokenTypeHandlerFactoryInterface
$userProvider Symfony\Component\Security\Core\User\UserProviderInterface

checkClientId() защищенный метод

Fetch client_id from authenticated token.
protected checkClientId ( ) : string
Результат string Supplied client_id from authenticated token

checkScope() защищенный метод

Fetch scope from POST.
protected checkScope ( Request $request, $clientId, $username ) : array | null
$request Symfony\Component\HttpFoundation\Request Incoming request object
Результат array | null Supplied scope in array from incoming request, or null if none given

Описание свойств

$encoderFactory защищенное свойство

protected $encoderFactory

$modelManagerFactory защищенное свойство

protected $modelManagerFactory

$tokenStorage защищенное свойство

protected $tokenStorage

$tokenTypeHandlerFactory защищенное свойство

protected $tokenTypeHandlerFactory

$userProvider защищенное свойство

protected $userProvider

$validator защищенное свойство

protected $validator