public AuthenticationSubscriber::onExceptionSendChallenge(GetResponseForExceptionEvent $event)
Respond with a challenge on access denied exceptions if appropriate.
On a 403 (access denied), if there are no credentials on the request, some authentication methods (e.g. basic auth) require that a challenge is sent to the client.
Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The exception event.
File
core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscribe