public function SamlSPDrupalLoginController::access in SAML Service Provider 8.3
Same name and namespace in other branches
- 4.x modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php \Drupal\saml_sp_drupal_login\Controller\SamlSPDrupalLoginController::access()
- 3.x modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php \Drupal\saml_sp_drupal_login\Controller\SamlSPDrupalLoginController::access()
Tests condition for requesting accounts.
1 string reference to 'SamlSPDrupalLoginController::access'
- saml_sp_drupal_login.routing.yml in modules/
saml_sp_drupal_login/ saml_sp_drupal_login.routing.yml - modules/saml_sp_drupal_login/saml_sp_drupal_login.routing.yml
File
- modules/
saml_sp_drupal_login/ src/ Controller/ SamlSPDrupalLoginController.php, line 52
Class
- SamlSPDrupalLoginController
- Provides route responses for the SAML SP module.
Namespace
Drupal\saml_sp_drupal_login\ControllerCode
public function access(AccountInterface $account) {
$authenticated = saml_sp_drupal_login_is_authenticated();
return AccessResult::allowedIf($account
->isAnonymous() && $authenticated);
}