LoginRedirectEntryPoint
The entry point for the session/form-login firewall: a 302 redirect back to the login path.
Complements, and does not duplicate, the existing anonymous-access forward already handled by Quiote\Middleware\SecurityMiddleware via SecurityService::decide() + ForwardService (unchanged — authentication and authorization stay separate concerns) — this entry point only fires when a login attempt itself fails (e.g. a bad password on the login POST), not on plain unauthenticated browsing.
Synopsis
Section titled “Synopsis”final class LoginRedirectEntryPoint implements EntryPointInterface
| Implements | EntryPointInterface |
| Since | 1.0.0 |
| Source | EntryPoint/LoginRedirectEntryPoint.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $loginPath = '/login', string $errorQueryParameter = 'error'): mixed
The query parameter appended to signal a failed attempt (e.g. ?error=1).
| Parameter | Type | Description |
|---|---|---|
$loginPath | string | The path to redirect back to. |
$errorQueryParameter | string | The query parameter appended to signal a failed attempt (e.g. ?error=1). |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
start(ServerRequestInterface $request, AuthenticationException $exception): ResponseInterface |
start()
Section titled “start()”public function start(ServerRequestInterface $request, AuthenticationException $exception): ResponseInterface
The exception the failing authenticator threw.
| Parameter | Type | Description |
|---|---|---|
$request | ServerRequestInterface | The request that failed authentication (the login POST). |
$exception | AuthenticationException | The exception the failing authenticator threw. |
Returns ResponseInterface — A 302 redirect back to the login path with the error query parameter set.