Skip to content

EntryPointInterface

Produces the failure response for a firewall when authentication is required but absent/invalid: a LoginRedirectEntryPoint (reuses the existing ForwardService login flow) for session/form firewalls, or an HttpChallengeEntryPoint (401 + WWW-Authenticate, RFC 7807 JSON, matching Quiote\Mcp\Middleware\McpAuthMiddleware) for token firewalls.

interface EntryPointInterface

Implemented byHttpChallengeEntryPoint, LoginRedirectEntryPoint
Since1.0.0
SourceSecurity/Auth/EntryPointInterface.php
MethodDescription
start(ServerRequestInterface $request, AuthenticationException $exception): ResponseInterface

abstract public function start(ServerRequestInterface $request, AuthenticationException $exception): ResponseInterface

The exception the failing authenticator threw.

ParameterTypeDescription
$requestServerRequestInterfaceThe request that failed authentication.
$exceptionAuthenticationExceptionThe exception the failing authenticator threw.

Returns ResponseInterface — The response to send instead of continuing the pipeline.