function AuthenticationManager::challengeException

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::challengeException()
  2. 10 core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::challengeException()
  3. 11.x core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::challengeException()

Overrides AuthenticationProviderChallengeInterface::challengeException

File

core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 82

Class

AuthenticationManager
Manager for authentication.

Namespace

Drupal\Core\Authentication

Code

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);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.