function AuthenticationManager::authenticate
Same name in other branches
- 9 core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::authenticate()
- 8.9.x core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::authenticate()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.