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.
Synopsis
Section titled “Synopsis”final class OidcAuthorizationRequest
| Since | 1.0.0 |
| Source | OidcAuthorizationRequest.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $authorizationUrl, OidcAuthorizationState $state): mixed
The state/PKCE-verifier/nonce to persist before redirecting.
| Parameter | Type | Description |
|---|---|---|
$authorizationUrl | string | The URL to redirect the browser to. |
$state | OidcAuthorizationState | The state/PKCE-verifier/nonce to persist before redirecting. |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
getAuthorizationUrl(): string | |
getState(): OidcAuthorizationState |
getAuthorizationUrl()
Section titled “getAuthorizationUrl()”public function getAuthorizationUrl(): string
Returns string — The URL to redirect the browser to.
getState()
Section titled “getState()”public function getState(): OidcAuthorizationState
Returns OidcAuthorizationState — The state/PKCE-verifier/nonce to persist before redirecting.