class AuthenticationManager

Manager for authentication.

On each request, let all authentication providers try to authenticate the user. The providers are iterated according to their priority and the first provider detecting credentials for its method wins. No further provider will get triggered.

If no provider set an active user then the user is set to anonymous.

Hierarchy

File

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

Namespace

Drupal\Core\Authentication

Members

Name Modifiers Type Description
AuthenticationManager::$authCollector protected property The authentication provider collector.
AuthenticationManager::applies public function Checks whether suitable authentication credentials are on the request. Overrides AuthenticationProviderInterface::applies
AuthenticationManager::appliesToRoutedRequest public function Checks whether the authentication method is allowed on a given route. Overrides AuthenticationProviderFilterInterface::appliesToRoutedRequest
AuthenticationManager::applyFilter protected function Checks whether a provider is allowed on the given request.
AuthenticationManager::authenticate public function Authenticates the user. Overrides AuthenticationProviderInterface::authenticate
AuthenticationManager::challengeException public function Constructs an exception which is used to generate the challenge. Overrides AuthenticationProviderChallengeInterface::challengeException
AuthenticationManager::defaultFilter protected function Default implementation of the provider filter.
AuthenticationManager::getChallenger protected function Returns the ID of the challenge provider for a request.
AuthenticationManager::getProvider protected function Returns the id of the authentication provider for a request.
AuthenticationManager::__construct public function Creates a new authentication manager instance.

© 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/class/AuthenticationManager/8.1.x