DeviceCodeController
class DeviceCodeController
Traits
Methods
Response
convertResponse(ResponseInterface $psrResponse)
Convert a PSR-7 response to a Symfony response.
from
ConvertsPsrResponses
mixed
from
HandlesOAuthErrors
mixed
withAuthorizationErrorHandling(Closure $callback, array $pending, AuthorizationResponse $responses)
Render authorization errors after rollback using the validated interaction context.
from
HandlesOAuthErrors
Response
__invoke(ServerRequestInterface $psrRequest, ResponseInterface $psrResponse)
Issue a device code for the client.
Details
in
ConvertsPsrResponses at line 16
Response
convertResponse(ResponseInterface $psrResponse)
Convert a PSR-7 response to a Symfony response.
in
HandlesOAuthErrors at line 25
protected mixed
withErrorHandling(Closure $callback)
Perform the given callback with exception handling.
in
HandlesOAuthErrors at line 42
protected mixed
withAuthorizationErrorHandling(Closure $callback, array $pending, AuthorizationResponse $responses)
Render authorization errors after rollback using the validated interaction context.
at line 20
__construct(ServerFactory $servers)
Create a new controller instance.
at line 28
Response
__invoke(ServerRequestInterface $psrRequest, ResponseInterface $psrResponse)
Issue a device code for the client.