AuthenticationProviderInterface::applies

public AuthenticationProviderInterface::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. File core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php, line 22 Class AuthenticationProviderInterface Interface for authentication pr

AuthenticationProviderInterface::authenticate

public AuthenticationProviderInterface::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. File core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php, line 34 Class AuthenticationProviderInterface Interface for authenticati

AuthenticationProviderInterface

Interface for authentication providers. Hierarchy interface \Drupal\Core\Authentication\AuthenticationProviderInterface File core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php, line 10 Namespace Drupal\Core\Authentication Members Name Modifiers Type Description AuthenticationProviderInterface::applies public function Checks whether suitable authentication credentials are on the request. AuthenticationProviderInterface::authenticate public funct

AuthenticationProviderPass

Registers the authentication_providers container parameter. Hierarchy class \Drupal\Core\DependencyInjection\Compiler\AuthenticationProviderPass implements CompilerPassInterface File core/lib/Drupal/Core/DependencyInjection/Compiler/AuthenticationProviderPass.php, line 11 Namespace Drupal\Core\DependencyInjection\Compiler Members Name Modifiers Type Description AuthenticationProviderPass::process public function You can modify the container here before it is dumped to PH

AuthenticationManager::getProvider

protected AuthenticationManager::getProvider(Request $request) Returns the id of the authentication 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 101 Class AuthenticationManager Manag

AuthenticationProviderFilterInterface

Restrict authentication methods to a subset of the site. Some authentication methods should not be available throughout a whole site. For instance, there are good reasons to restrict insecure methods like HTTP basic authentication or a URL token authentication method to API-only routes. Hierarchy interface \Drupal\Core\Authentication\AuthenticationProviderFilterInterface File core/lib/Drupal/Core/Authentication/AuthenticationProviderFilterInterface.php, line 15 Namespace Drupal\Core\Auth

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

AuthenticationProviderFilterInterface::appliesToRoutedRequest

public AuthenticationProviderFilterInterface::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

AuthenticationManager::__construct

public AuthenticationManager::__construct(AuthenticationCollectorInterface $auth_collector) Creates a new authentication manager instance. Parameters \Drupal\Core\Authentication\AuthenticationCollectorInterface $auth_collector: The authentication provider collector. File core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 33 Class AuthenticationManager Manager for authentication. Namespace Drupal\Core\Authentication Code public function __construct(AuthenticationCollec

AuthenticationProviderChallengeInterface::challengeException

public AuthenticationProviderChallengeInterface::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. File core/lib/Drupal/Core/Authentication/Authen