handleTokenRequest()
handleTokenRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response)
Handle the token request
Parameters
| \OAuth2\RequestInterface | $request |
|
| \OAuth2\ResponseInterface | $response |
|
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
handleTokenRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response)
Handle the token request
| \OAuth2\RequestInterface | $request |
|
| \OAuth2\ResponseInterface | $response |
|
grantAccessToken(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response) : mixed
Grant or deny a requested access token.
This would be called from the "/token" endpoint as defined in the spec. You can call your endpoint whatever you want.
| \OAuth2\RequestInterface | $request |
|
| \OAuth2\ResponseInterface | $response |
|