class AccessTokenController

Traits

Methods

Response
convertResponse(ResponseInterface $psrResponse)

Convert a PSR-7 response to a Symfony response.

mixed
withErrorHandling(Closure $callback)

Perform the given callback with exception handling.

mixed
withAuthorizationErrorHandling(Closure $callback, array $pending, AuthorizationResponse $responses)

Render authorization errors after rollback using the validated interaction context.

__construct(ServerFactory $servers)

Create a new controller instance.

Response
issueToken(ServerRequestInterface $psrRequest, ResponseInterface $psrResponse)

Issue an access token.

Details

Response convertResponse(ResponseInterface $psrResponse)

Convert a PSR-7 response to a Symfony response.

Parameters

ResponseInterface $psrResponse

Return Value

Response

in HandlesOAuthErrors at line 25
protected mixed withErrorHandling(Closure $callback)

Perform the given callback with exception handling.

Parameters

Closure $callback

Return Value

mixed

Exceptions

OAuthServerException

in HandlesOAuthErrors at line 42
protected mixed withAuthorizationErrorHandling(Closure $callback, array $pending, AuthorizationResponse $responses)

Render authorization errors after rollback using the validated interaction context.

Parameters

Closure $callback
array $pending
AuthorizationResponse $responses

Return Value

mixed

at line 20
__construct(ServerFactory $servers)

Create a new controller instance.

Parameters

ServerFactory $servers

at line 28
Response issueToken(ServerRequestInterface $psrRequest, ResponseInterface $psrResponse)

Issue an access token.

Parameters

ServerRequestInterface $psrRequest
ResponseInterface $psrResponse

Return Value

Response