AuthenticationManager::getChallenger

protected AuthenticationManager::getChallenger(Request $request) Returns the ID of the challenge provider for a request. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. Return value string|null The ID of the first authentication provider which applies to the request. If no application detects appropriate credentials, then NULL is returned. File core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 119 Class AuthenticationManager Manager

AuthenticationManager::defaultFilter

protected AuthenticationManager::defaultFilter(Request $request, $provider_id) Default implementation of the provider filter. Checks whether a provider is allowed as per the _auth option on a route. If the option is not set or if the request did not match any route, only providers from the global provider set are allowed. If no filter is registered for the given provider id, the default filter is applied. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. stri

AuthenticationManager::challengeException

public AuthenticationManager::challengeException(Request $request, \Exception $previous) 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. Overrides AuthenticationProviderChallengeInterface::challengeExcep

AuthenticationManager::authenticate

public AuthenticationManager::authenticate(Request $request) Authenticates the user. Parameters \Symfony\Component\HttpFoundation\Request|null $request: The request object. Return value \Drupal\Core\Session\AccountInterface|null AccountInterface - in case of a successful authentication. NULL - in case where authentication failed. Overrides AuthenticationProviderInterface::authenticate File core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 47 Class AuthenticationManager

AuthenticationManager::applyFilter

protected AuthenticationManager::applyFilter(Request $request, $authenticated, $provider_id) Checks whether a provider is allowed on the given request. If no filter is registered for the given provider id, the default filter is applied. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. bool $authenticated: Whether or not the request is authenticated. string $provider_id: The id of the authentication provider to check access for. Return value bool TRUE if pro

AuthenticationManager::appliesToRoutedRequest

public AuthenticationManager::appliesToRoutedRequest(Request $request, $authenticated) Checks whether the authentication method is allowed on a given route. While authentication itself is run before routing, this method is called after routing, hence RouteMatch is available and can be used to inspect route options. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. bool $authenticated: Whether or not the request is authenticated. Return value bool TRUE if an authentic

AuthenticationManager::applies

public AuthenticationManager::applies(Request $request) Checks whether suitable authentication credentials are on the request. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. Return value bool TRUE if authentication credentials suitable for this provider are on the request, FALSE otherwise. Overrides AuthenticationProviderInterface::applies File core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 40 Class AuthenticationManager Manager fo

AuthenticationManager::$authCollector

The authentication provider collector. Type: \Drupal\Core\Authentication\AuthenticationCollectorInterface File core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 25 Class AuthenticationManager Manager for authentication. Namespace Drupal\Core\Authentication Code protected $authCollector;

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 class \Drupal\Core\Authentication\AuthenticationManager implements AuthenticationProviderChallengeInterface, AuthenticationProviderFilterInterface, Aut

AuthenticationCollectorInterface::isGlobal

public AuthenticationCollectorInterface::isGlobal($provider_id) Returns whether a provider is considered global. Parameters string $provider_id: The provider ID. Return value bool TRUE if the provider is global, FALSE otherwise. See also \Drupal\Core\Authentication\AuthenticationCollectorInterface::addProvider File core/lib/Drupal/Core/Authentication/AuthenticationCollectorInterface.php, line 36 Class AuthenticationCollectorInterface Interface for collectors of registered authentication