Cheetah
Public Member Functions | List of all members
OAuth2\Controller\TokenControllerInterface Interface Reference
Inheritance diagram for OAuth2\Controller\TokenControllerInterface:
OAuth2\Controller\TokenController OAuth2\Server

Public Member Functions

 handleTokenRequest (RequestInterface $request, ResponseInterface $response)
 
 grantAccessToken (RequestInterface $request, ResponseInterface $response)
 

Detailed Description

This controller is called when a token is being requested. it is called to handle all grant types the application supports. It also validates the client's credentials

ex:

$tokenController->handleTokenRequest(OAuth2\Request::createFromGlobals(), $response = new OAuth2\Response()); $response->send();

Definition at line 18 of file TokenControllerInterface.php.

Member Function Documentation

◆ grantAccessToken()

OAuth2\Controller\TokenControllerInterface::grantAccessToken ( RequestInterface  $request,
ResponseInterface  $response 
)

◆ handleTokenRequest()

OAuth2\Controller\TokenControllerInterface::handleTokenRequest ( RequestInterface  $request,
ResponseInterface  $response 
)

handleTokenRequest

Parameters
$requestOAuth2\RequestInterface - The current http request
$responseOAuth2\ResponseInterface - An instance of OAuth2\ResponseInterface to contain the response data

Implemented in OAuth2\Server, and OAuth2\Controller\TokenController.


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