public AuthenticationManager::challengeException(Request $request, \Exception $previous)
Constructs an exception which is used to generate the challenge.
\Symfony\Component\HttpFoundation\Request $request: The request.
\Exception $previous: The previous exception.
\Symfony\Component\HttpKernel\Exception\HttpExceptionInterface|NULL An exception to be used in order to generate an authentication challenge.
Overrides AuthenticationProviderChallengeInterface::challengeException
public function challengeException(Request $request, \Exception $previous) { $provider_id = $this->getChallenger($request); if ($provider_id) { $provider = $this->authCollector->getProvider($provider_id); return $provider->challengeException($request, $previous); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Authentication!AuthenticationManager.php/function/AuthenticationManager::challengeException/8.1.x