PHP 클래스 AuthBucket\OAuth2\ResponseType\AbstractResponseTypeHandler

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

보호된 프로퍼티들

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