function AuthenticationManager::appliesToRoutedRequest
Overrides AuthenticationProviderFilterInterface::appliesToRoutedRequest
File
-
core/
lib/ Drupal/ Core/ Authentication/ AuthenticationManager.php, line 61
Class
- AuthenticationManager
- Manager for authentication.
Namespace
Drupal\Core\AuthenticationCode
public function appliesToRoutedRequest(Request $request, $authenticated) {
$result = FALSE;
if ($authenticated) {
$result = $this->applyFilter($request, $authenticated, $this->getProvider($request));
}
else {
foreach ($this->authCollector
->getSortedProviders() as $provider_id => $provider) {
if ($this->applyFilter($request, $authenticated, $provider_id)) {
$result = TRUE;
break;
}
}
}
return $result;
}