public function AuthenticationManager::authenticate in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::authenticate()
- 9 core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::authenticate()
File
- core/
lib/ Drupal/ Core/ Authentication/ AuthenticationManager.php, line 47
Class
- AuthenticationManager
- Manager for authentication.
Namespace
Drupal\Core\AuthenticationCode
public function authenticate(Request $request) {
$provider_id = $this
->getProvider($request);
$provider = $this->authCollector
->getProvider($provider_id);
if ($provider) {
return $provider
->authenticate($request);
}
return NULL;
}