OidcLoginController
in package
FinalYes
Step 1 of "Login with AXIAM" (CONTRACT.md ยง12.1 `oidc_begin`): builds the authorization request, parks its `state`/`nonce`/`code_verifier` in the configured {@see \Axiam\Sdk\Oidc\OidcStateStoreInterface}, and redirects the browser to the IdP. All security-critical logic lives in {@see OidcLoginFlow} โ this class only translates its {@see OidcLoginOutcome} into an HTTP response.
Table of Contents
Methods
- __construct() : mixed
- __invoke() : Response
- Handles the login GET request and returns the mapped HTTP response (a redirect to the IdP, or a 503 error body).
- toResponse() : Response
- Shared outcome โ HTTP-response translation, reused by {@see OidcCallbackController}.
Methods
__construct()
public
__construct(OidcLoginFlow $flow) : mixed
Parameters
- $flow : OidcLoginFlow
__invoke()
Handles the login GET request and returns the mapped HTTP response (a redirect to the IdP, or a 503 error body).
public
__invoke(Request $request) : Response
Parameters
- $request : Request
Return values
ResponsetoResponse()
Shared outcome โ HTTP-response translation, reused by {@see OidcCallbackController}.
public
static toResponse(OidcLoginOutcome $outcome) : Response
Parameters
- $outcome : OidcLoginOutcome