function AuthenticationProviderChallengeInterface::challengeException
Same name in other branches
- 9 core/lib/Drupal/Core/Authentication/AuthenticationProviderChallengeInterface.php \Drupal\Core\Authentication\AuthenticationProviderChallengeInterface::challengeException()
- 8.9.x core/lib/Drupal/Core/Authentication/AuthenticationProviderChallengeInterface.php \Drupal\Core\Authentication\AuthenticationProviderChallengeInterface::challengeException()
- 11.x core/lib/Drupal/Core/Authentication/AuthenticationProviderChallengeInterface.php \Drupal\Core\Authentication\AuthenticationProviderChallengeInterface::challengeException()
Constructs an exception which is used to generate the challenge.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request.
\Exception $previous: The previous exception.
Return value
\Symfony\Component\HttpKernel\Exception\HttpExceptionInterface|null An exception to be used in order to generate an authentication challenge.
2 methods override AuthenticationProviderChallengeInterface::challengeException()
- AuthenticationManager::challengeException in core/
lib/ Drupal/ Core/ Authentication/ AuthenticationManager.php - BasicAuth::challengeException in core/
modules/ basic_auth/ src/ Authentication/ Provider/ BasicAuth.php
File
-
core/
lib/ Drupal/ Core/ Authentication/ AuthenticationProviderChallengeInterface.php, line 27
Class
- AuthenticationProviderChallengeInterface
- Generate a challenge when access is denied for unauthenticated users.
Namespace
Drupal\Core\AuthenticationCode
public function challengeException(Request $request, \Exception $previous);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.