Interface StatelessInterface
Interface to mark an authenticator as being stateless and able to emit a challenge exception when authentication fails.
Namespace: Authentication\Authenticator
Method Summary
-
unauthorizedChallenge() public
Create a challenge exception
Method Detail
unauthorizedChallenge() ΒΆ public
unauthorizedChallenge(Psr\Http\Message\ServerRequestInterface $request): void
Create a challenge exception
Create an exception with the appropriate headers and response body to challenge a request that has missing or invalid credentials.
This is primarily used by authentication methods that use the WWW-Authorization header.
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The request.
Returns
void
Throws
Authentication\Authenticator\AuthenticationRequiredException