public function 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 authentication providers.

Namespace

Drupal\Core\Authentication

Code

public function authenticate(Request $request);

© 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!AuthenticationProviderInterface.php/function/AuthenticationProviderInterface::authenticate/8.1.x