DenyAuthorizationController
class DenyAuthorizationController
Traits
Methods
Convert a PSR-7 response to a Symfony response.
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.
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.
in
RetrievesAuthRequestFromSession at line 22
protected AuthorizationRequestInterface
getAuthRequestFromSession(Request $request)
Get the authorization request 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 29
__construct(ServerFactory $servers, AuthManager $auth, Repository $config, ClientRepository $clients, PendingAuthorizationRepository $pending, AuthorizationRequestResolver $authorizations, AuthorizationResponse $responses)
Create a new controller instance.
at line 43
Response
deny(Request $request, ResponseInterface $psrResponse)
Deny the authorization request.