PHP 클래스 AuthBucket\OAuth2\GrantType\AbstractGrantTypeHandler

저자: Wong Hoi Sing Edison ([email protected])
상속: implements AuthBucket\OAuth2\GrantType\GrantTypeHandlerInterface
파일 보기 프로젝트 열기: authbucket/oauth2

보호된 프로퍼티들

프로퍼티 타입 설명
$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