DenyDeviceAuthorizationController
class DenyDeviceAuthorizationController
Traits
Methods
Render authorization errors after rollback using the validated interaction context.
Resolve the guard authorizing the current request.
Get the name of the guard authorizing the current request.
Get the approving guard's user provider.
Capture the approving identity and synchronous extension decisions.
Ensure the consent belongs to the current user and provider.
Get the pending interaction selected by a browser decision.
Recheck the client and scopes saved with the consent request.
Create a new controller instance.
Deny the device authorization request.
Details
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.
in
RetrievesDeviceCodeFromSession at line 22
protected DeviceCodeEntityInterface
getDeviceCodeFromSession(Request $request)
Get the device code from the session.
in
ResolvesApprovingGuard at line 28
protected StatefulGuard
getApprovingGuard()
Resolve the guard authorizing the current request.
in
ResolvesApprovingGuard at line 39
protected string
getApprovingGuardName()
Get the name of the guard authorizing the current request.
in
ResolvesApprovingGuard at line 47
protected string|null
getApprovingProvider()
Get the approving guard's user provider.
in
ResolvesApprovingGuard at line 59
protected array
authorizationState(Request $request, array $parameters, Authenticatable $user, Client $client, array $scopes, AuthorizationRequestInterface|DeviceCodeEntityInterface $authorization, Dispatcher $events)
Capture the approving identity and synchronous extension decisions.
in
ResolvesApprovingGuard at line 109
protected void
ensureApprovingUser(array $pending)
Ensure the consent belongs to the current user and provider.
in
ResolvesApprovingGuard at line 127
protected array
getPendingAuthorization(Request $request)
Get the pending interaction selected by a browser decision.
in
ResolvesApprovingGuard at line 143
protected Client
getClientForApproval(string $identifier, string $grantType, array $scopes)
Recheck the client and scopes saved with the consent request.
at line 26
__construct(ServerFactory $servers, AuthManager $auth, Repository $config, ClientRepository $clients, PendingAuthorizationRepository $pending, DeviceCodeRepository $deviceCodes)
Create a new controller instance.
at line 39
DeniedDeviceAuthorizationResponse
__invoke(Request $request, DeniedDeviceAuthorizationResponse $response)
Deny the device authorization request.