PHP Class AuthBucket\OAuth2\GrantType\AbstractGrantTypeHandler

Author: Wong Hoi Sing Edison ([email protected])
Inheritance: implements AuthBucket\OAuth2\GrantType\GrantTypeHandlerInterface
Show file Open project: authbucket/oauth2

Protected Properties

Property Type Description
$encoderFactory
$modelManagerFactory
$tokenStorage
$tokenTypeHandlerFactory
$userProvider
$validator

Public Methods

Method Description
__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 )

Protected Methods

Method Description
checkClientId ( ) : string Fetch client_id from authenticated token.
checkScope ( Request $request, $clientId, $username ) : array | null Fetch scope from POST.

Method Details

__construct() public method

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() protected method

Fetch client_id from authenticated token.
protected checkClientId ( ) : string
return string Supplied client_id from authenticated token

checkScope() protected method

Fetch scope from POST.
protected checkScope ( Request $request, $clientId, $username ) : array | null
$request Symfony\Component\HttpFoundation\Request Incoming request object
return array | null Supplied scope in array from incoming request, or null if none given

Property Details

$encoderFactory protected property

protected $encoderFactory

$modelManagerFactory protected property

protected $modelManagerFactory

$tokenStorage protected property

protected $tokenStorage

$tokenTypeHandlerFactory protected property

protected $tokenTypeHandlerFactory

$userProvider protected property

protected $userProvider

$validator protected property

protected $validator