class AuthorizationResponse

Methods

__construct(ServerFactory $servers)

Create the authorization response renderer.

Response
success(Response $response, string $redirectUri, string|null $state, string $mode)

Render an issued code without generating or encrypting it again.

Response
error(OAuthServerException $exception, string|null $redirectUri, string|null $state, string $mode)

Render a protocol error locally or to an already validated callback.

Response
render(string $redirectUri, array $parameters, string $mode, array $headers = [])

Send protocol fields through the selected authorization response mode.

Details

at line 18
__construct(ServerFactory $servers)

Create the authorization response renderer.

Parameters

ServerFactory $servers

at line 25
Response success(Response $response, string $redirectUri, string|null $state, string $mode)

Render an issued code without generating or encrypting it again.

Parameters

Response $response
string $redirectUri
string|null $state
string $mode

Return Value

Response

at line 39
Response error(OAuthServerException $exception, string|null $redirectUri, string|null $state, string $mode)

Render a protocol error locally or to an already validated callback.

Parameters

OAuthServerException $exception
string|null $redirectUri
string|null $state
string $mode

Return Value

Response

at line 58
protected Response render(string $redirectUri, array $parameters, string $mode, array $headers = [])

Send protocol fields through the selected authorization response mode.

Parameters

string $redirectUri
array $parameters
string $mode
array $headers

Return Value

Response