trait ResolvesApprovingGuard

Methods

getApprovingGuard()

Resolve the guard authorizing the current request.

string
getApprovingGuardName()

Get the name of the guard authorizing the current request.

string|null
getApprovingProvider()

Get the approving guard's user provider.

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.

void
ensureApprovingUser(array $pending)

Ensure the consent belongs to the current user and provider.

array
getPendingAuthorization(Request $request)

Get the pending interaction selected by a browser decision.

getClientForApproval(string $identifier, string $grantType, array $scopes)

Recheck the client and scopes saved with the consent request.

Details

at line 28
protected StatefulGuard getApprovingGuard()

Resolve the guard authorizing the current request.

Return Value

StatefulGuard

at line 39
protected string getApprovingGuardName()

Get the name of the guard authorizing the current request.

Return Value

string

at line 47
protected string|null getApprovingProvider()

Get the approving guard's user provider.

Return Value

string|null

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.

Parameters

Request $request
array $parameters
Authenticatable $user
Client $client
array $scopes
AuthorizationRequestInterface|DeviceCodeEntityInterface $authorization
Dispatcher $events

Return Value

array

at line 109
protected void ensureApprovingUser(array $pending)

Ensure the consent belongs to the current user and provider.

Parameters

array $pending

Return Value

void

at line 127
protected array getPendingAuthorization(Request $request)

Get the pending interaction selected by a browser decision.

Parameters

Request $request

Return Value

array

at line 143
protected Client getClientForApproval(string $identifier, string $grantType, array $scopes)

Recheck the client and scopes saved with the consent request.

Parameters

string $identifier
string $grantType
array $scopes

Return Value

Client