public function AuthenticationProviderInterface::authenticate in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\AuthenticationProviderInterface::authenticate()
- 9 core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\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.
4 methods override AuthenticationProviderInterface::authenticate()
- Auth::authenticate in core/
modules/ locale/ tests/ modules/ early_translation_test/ src/ Auth.php - Authenticates the user.
- TestAuth::authenticate in core/
modules/ rest/ tests/ modules/ rest_test/ src/ Authentication/ Provider/ TestAuth.php - Authenticates the user.
- TestAuthenticationProvider::authenticate in core/
tests/ Drupal/ Tests/ Core/ Authentication/ AuthenticationCollectorTest.php - Authenticates the user.
- TestAuthGlobal::authenticate in core/
modules/ rest/ tests/ modules/ rest_test/ src/ Authentication/ Provider/ TestAuthGlobal.php - Authenticates the user.
File
- core/
lib/ Drupal/ Core/ Authentication/ AuthenticationProviderInterface.php, line 34
Class
- AuthenticationProviderInterface
- Interface for authentication providers.
Namespace
Drupal\Core\AuthenticationCode
public function authenticate(Request $request);