You are here

public function AuthenticationProviderChallengeInterface::challengeException in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Authentication/AuthenticationProviderChallengeInterface.php \Drupal\Core\Authentication\AuthenticationProviderChallengeInterface::challengeException()
  2. 9 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.

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\Authentication

Code

public function challengeException(Request $request, \Exception $previous);