class AuthorizationFinalizer

Methods

__construct(ServerFactory $servers, ConsentRepository $consents, ClientRepository $clients, Dispatcher $events, ResourceRepository $resources)

Create the authorization finalizer.

mixed
approve(Request $request, AuthorizationRequestInterface|DeviceCodeEntityInterface $authorization, array $pending, Authenticatable $user, AuthorizationApproval $approval, Closure $complete)

Attach consent and extension data atomically before completing an authorization.

array
selection(Request $request, array $presented)

Validate submitted choices against the saved consent presentation.

array
selectedValues(mixed $selected, array $presented, string $parameter)

Validate a selected set, including an explicitly empty form selection.

Details

at line 25
__construct(ServerFactory $servers, ConsentRepository $consents, ClientRepository $clients, Dispatcher $events, ResourceRepository $resources)

Create the authorization finalizer.

Parameters

ServerFactory $servers
ConsentRepository $consents
ClientRepository $clients
Dispatcher $events
ResourceRepository $resources

at line 42
mixed approve(Request $request, AuthorizationRequestInterface|DeviceCodeEntityInterface $authorization, array $pending, Authenticatable $user, AuthorizationApproval $approval, Closure $complete)

Attach consent and extension data atomically before completing an authorization.

Parameters

Request $request
AuthorizationRequestInterface|DeviceCodeEntityInterface $authorization
array $pending
Authenticatable $user
AuthorizationApproval $approval
Closure $complete

Return Value

mixed

at line 144
protected array selection(Request $request, array $presented)

Validate submitted choices against the saved consent presentation.

Parameters

Request $request
array $presented

Return Value

array

at line 195
protected array selectedValues(mixed $selected, array $presented, string $parameter)

Validate a selected set, including an explicitly empty form selection.

Parameters

mixed $selected
array $presented
string $parameter

Return Value

array