ResourceController
- Full name:
\OAuth2\Controller\ResourceController
- This class implements:
\OAuth2\Controller\ResourceControllerInterface
See Also:
- \OAuth2\Controller\ResourceControllerInterface -
Properties
token
tokenType
tokenStorage
config
scopeUtil
Methods
__construct
Constructor
public __construct(\OAuth2\TokenType\TokenTypeInterface $tokenType, \OAuth2\Storage\AccessTokenInterface $tokenStorage, array $config = array(), \OAuth2\ScopeInterface $scopeUtil = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$tokenType |
\OAuth2\TokenType\TokenTypeInterface | |
$tokenStorage |
\OAuth2\Storage\AccessTokenInterface | |
$config |
array | |
$scopeUtil |
\OAuth2\ScopeInterface |
verifyResourceRequest
Verify the resource request
public verifyResourceRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response, null $scope = null): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
\OAuth2\RequestInterface | |
$response |
\OAuth2\ResponseInterface | |
$scope |
null |
getAccessTokenData
Get access token data.
public getAccessTokenData(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response): array|null
Parameters:
Parameter | Type | Description |
---|---|---|
$request |
\OAuth2\RequestInterface | |
$response |
\OAuth2\ResponseInterface |
getToken
convenience method to allow retrieval of the token.
Automatically generated on 2025-03-18