SessionAuthenticationMiddleware
Runs the session/form-login firewall’s authenticator chain in before_action, after Quiote\Middleware\RoutingMiddleware (so SecurityUser is already rehydrated) and before Quiote\Middleware\SecurityMiddleware (so a successful login is visible to the authZ decision made later in the same request).
Registered by AuthPlugin with explicit after:/before: anchors rather than a bare phase/priority, so its position stays correct regardless of how other middleware are reordered.
Synopsis
Section titled “Synopsis”final class SessionAuthenticationMiddleware implements MiddlewareInterface
| Implements | MiddlewareInterface |
| Since | 1.0.0 |
| Source | Middleware/SessionAuthenticationMiddleware.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(FirewallMap $firewalls, AuthenticationManager $manager): mixed
Runs the matched firewall’s authenticator chain.
| Parameter | Type | Description |
|---|---|---|
$firewalls | FirewallMap | The configured firewalls, matched by request path. |
$manager | AuthenticationManager | Runs the matched firewall’s authenticator chain. |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
process()
Section titled “process()”public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
The next middleware in the pipeline.
| Parameter | Type | Description |
|---|---|---|
$request | ServerRequestInterface | The incoming request. |
$handler | RequestHandlerInterface | The next middleware in the pipeline. |
Returns ResponseInterface — The next middleware’s response, or the firewall’s entry-point response on a failed login attempt.