PHP Класс AuthBucket\OAuth2\ResponseType\AbstractResponseTypeHandler

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

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

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

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

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

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

Метод Описание
checkClientId ( Request $request ) : string Fetch cliend_id from GET.
checkRedirectUri ( Request $request, string $clientId ) : string Fetch redirect_uri from GET.
checkScope ( Request $request, $clientId, $username, $redirectUri, $state )
checkState ( Request $request, $redirectUri )
checkUsername ( ) : string Fetch username from authenticated token.

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

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

public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Validator\Validator\ValidatorInterface $validator, AuthBucket\OAuth2\Model\ModelManagerFactoryInterface $modelManagerFactory, AuthBucket\OAuth2\TokenType\TokenTypeHandlerFactoryInterface $tokenTypeHandlerFactory )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$validator Symfony\Component\Validator\Validator\ValidatorInterface
$modelManagerFactory AuthBucket\OAuth2\Model\ModelManagerFactoryInterface
$tokenTypeHandlerFactory AuthBucket\OAuth2\TokenType\TokenTypeHandlerFactoryInterface

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

Fetch cliend_id from GET.
protected checkClientId ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request Incoming request object
Результат string Supplied client_id from incoming request

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

Fetch redirect_uri from GET.
protected checkRedirectUri ( Request $request, string $clientId ) : string
$request Symfony\Component\HttpFoundation\Request Incoming request object
$clientId string Corresponding client_id that code should belongs to
Результат string The supplied redirect_uri from incoming request, or from stored record

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

protected checkScope ( Request $request, $clientId, $username, $redirectUri, $state )
$request Symfony\Component\HttpFoundation\Request

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

protected checkState ( Request $request, $redirectUri )
$request Symfony\Component\HttpFoundation\Request

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

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

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

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

protected $modelManagerFactory

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

protected $tokenStorage

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

protected $tokenTypeHandlerFactory

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

protected $validator