ResolvesApprovingGuard
trait ResolvesApprovingGuard
Methods
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.
Details
at line 28
protected StatefulGuard
getApprovingGuard()
Resolve the guard authorizing the current request.
at line 39
protected string
getApprovingGuardName()
Get the name of the guard authorizing the current request.
at line 47
protected string|null
getApprovingProvider()
Get the approving guard's user provider.
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.
at line 109
protected void
ensureApprovingUser(array $pending)
Ensure the consent belongs to the current user and provider.
at line 127
protected array
getPendingAuthorization(Request $request)
Get the pending interaction selected by a browser decision.
at line 143
protected Client
getClientForApproval(string $identifier, string $grantType, array $scopes)
Recheck the client and scopes saved with the consent request.