public function SamlSPDrupalLoginController::access in SAML Service Provider 3.x
Same name and namespace in other branches
- 8.3 modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php \Drupal\saml_sp_drupal_login\Controller\SamlSPDrupalLoginController::access()
- 4.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 46
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);
}