class AuthorizationRequestResolver

Methods

__construct(ServerFactory $servers, ClientRepository $clients, AuthorizationResponse $responses, ResourceRepository $resources, Repository $config)

Create the authorization request resolver.

AuthorizationRequestInterface
validate(ServerRequestInterface $request)

Validate a browser authorization and render early errors only to a trusted callback.

AuthorizationRequestInterface
validateAuthorizationRequest(ServerRequestInterface $request, array|null $scopes = null, bool $pushed = false)

Validate protocol input without selecting a browser error transport.

Response
error(OAuthServerException $exception, array $parameters)

Recover a safe error destination when League rejects before returning an authorization.

AuthorizationRequestInterface
resolve(array $pending, ServerRequestInterface $request)

Revalidate a saved presentation using the current client and server configuration.

Details

at line 21
__construct(ServerFactory $servers, ClientRepository $clients, AuthorizationResponse $responses, ResourceRepository $resources, Repository $config)

Create the authorization request resolver.

Parameters

ServerFactory $servers
ClientRepository $clients
AuthorizationResponse $responses
ResourceRepository $resources
Repository $config

at line 33
AuthorizationRequestInterface validate(ServerRequestInterface $request)

Validate a browser authorization and render early errors only to a trusted callback.

Parameters

ServerRequestInterface $request

Return Value

AuthorizationRequestInterface

at line 52
AuthorizationRequestInterface validateAuthorizationRequest(ServerRequestInterface $request, array|null $scopes = null, bool $pushed = false)

Validate protocol input without selecting a browser error transport.

Saved requests pass their frozen scope IDs; null applies the fresh-request default intersection. Pass $pushed only for an authenticated PAR submission or a consumed pushed request, since it satisfies the client's PAR requirement.

Parameters

ServerRequestInterface $request
array|null $scopes
bool $pushed

Return Value

AuthorizationRequestInterface

Exceptions

OAuthServerException

at line 125
Response error(OAuthServerException $exception, array $parameters)

Recover a safe error destination when League rejects before returning an authorization.

Parameters

OAuthServerException $exception
array $parameters

Return Value

Response

at line 156
AuthorizationRequestInterface resolve(array $pending, ServerRequestInterface $request)

Revalidate a saved presentation using the current client and server configuration.

Parameters

array $pending
ServerRequestInterface $request

Return Value

AuthorizationRequestInterface