Skip to content

OidcAuthorizationRequest

The result of OidcClient::buildAuthorizationRequest(): the URL to redirect the browser to, plus the state/PKCE-verifier/nonce the caller must persist (e.g.

via OidcStateStorage) so the callback leg can verify them.

final class OidcAuthorizationRequest

Since1.0.0
SourceOidcAuthorizationRequest.php

public function __construct(string $authorizationUrl, OidcAuthorizationState $state): mixed

The state/PKCE-verifier/nonce to persist before redirecting.

ParameterTypeDescription
$authorizationUrlstringThe URL to redirect the browser to.
$stateOidcAuthorizationStateThe state/PKCE-verifier/nonce to persist before redirecting.

Returns mixed

MethodDescription
getAuthorizationUrl(): string
getState(): OidcAuthorizationState

public function getAuthorizationUrl(): string

Returns string — The URL to redirect the browser to.

public function getState(): OidcAuthorizationState

Returns OidcAuthorizationState — The state/PKCE-verifier/nonce to persist before redirecting.