Cheetah
Public Member Functions | Protected Attributes | List of all members
OAuth2\Controller\ResourceController Class Reference
Inheritance diagram for OAuth2\Controller\ResourceController:
OAuth2\Controller\ResourceControllerInterface OAuth2\OpenID\Controller\UserInfoController

Public Member Functions

 __construct (TokenTypeInterface $tokenType, AccessTokenInterface $tokenStorage, $config=array(), ScopeInterface $scopeUtil=null)
 
 verifyResourceRequest (RequestInterface $request, ResponseInterface $response, $scope=null)
 
 getAccessTokenData (RequestInterface $request, ResponseInterface $response)
 
 getToken ()
 

Protected Attributes

 $tokenType
 
 $tokenStorage
 
 $config
 
 $scopeUtil
 

Detailed Description

See also
OAuth2\Controller\ResourceControllerInterface

Definition at line 15 of file ResourceController.php.

Constructor & Destructor Documentation

◆ __construct()

OAuth2\Controller\ResourceController::__construct ( TokenTypeInterface  $tokenType,
AccessTokenInterface  $tokenStorage,
  $config = array(),
ScopeInterface  $scopeUtil = null 
)

Definition at line 24 of file ResourceController.php.

Member Function Documentation

◆ getAccessTokenData()

OAuth2\Controller\ResourceController::getAccessTokenData ( RequestInterface  $request,
ResponseInterface  $response 
)

◆ getToken()

OAuth2\Controller\ResourceController::getToken ( )

Definition at line 107 of file ResourceController.php.

◆ verifyResourceRequest()

OAuth2\Controller\ResourceController::verifyResourceRequest ( RequestInterface  $request,
ResponseInterface  $response,
  $scope = null 
)

Check scope, if provided If token doesn't have a scope, it's null/empty, or it's insufficient, then throw 403

See also
http://tools.ietf.org/html/rfc6750#section-3.1

Implements OAuth2\Controller\ResourceControllerInterface.

Definition at line 39 of file ResourceController.php.

Member Data Documentation

◆ $config

OAuth2\Controller\ResourceController::$config
protected

Definition at line 21 of file ResourceController.php.

◆ $scopeUtil

OAuth2\Controller\ResourceController::$scopeUtil
protected

Definition at line 22 of file ResourceController.php.

◆ $tokenStorage

OAuth2\Controller\ResourceController::$tokenStorage
protected

Definition at line 20 of file ResourceController.php.

◆ $tokenType

OAuth2\Controller\ResourceController::$tokenType
protected

Definition at line 19 of file ResourceController.php.


The documentation for this class was generated from the following file: