You are here

public function AuthenticationProviderChallengeInterface::challengeException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Authentication/AuthenticationProviderChallengeInterface.php \Drupal\Core\Authentication\AuthenticationProviderChallengeInterface::challengeException()

Constructs an exception which is used to generate the challenge.

The request. @var \Exception $exception 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
Constructs an exception which is used to generate the challenge.
BasicAuth::challengeException in core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
Constructs an exception which is used to generate the challenge.

File

core/lib/Drupal/Core/Authentication/AuthenticationProviderChallengeInterface.php, line 32
Contains \Drupal\Core\Authentication\AuthenticationProviderChallengeInterface.

Class

AuthenticationProviderChallengeInterface
Generate a challenge when access is denied for unauthenticated users.

Namespace

Drupal\Core\Authentication

Code

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