Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AuthenticationProviderInterface.php

function AuthenticationProviderInterface::authenticate

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.

3 methods override AuthenticationProviderInterface::authenticate()
AuthenticationManager::authenticate in core/lib/Drupal/Core/Authentication/AuthenticationManager.php
Authenticates the user.
BasicAuth::authenticate in core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
Authenticates the user.
Cookie::authenticate in core/modules/user/src/Authentication/Provider/Cookie.php
Authenticates the user.

File

core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php, line 34

Class

AuthenticationProviderInterface
Interface for authentication providers.

Namespace

Drupal\Core\Authentication

Code

public function authenticate(Request $request);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal