You are here

public function SimplesamlphpAuthManager::isAuthenticated in simpleSAMLphp Authentication 8.3

Check whether user is authenticated by the IdP.

Return value

bool If the user is authenticated by the IdP.

1 method overrides SimplesamlphpAuthManager::isAuthenticated()
SimplesamlphpAuthTestManager::isAuthenticated in tests/simplesamlphp_auth_test/src/SimplesamlphpAuthTestManager.php
Check whether user is authenticated by the IdP.

File

src/Service/SimplesamlphpAuthManager.php, line 211

Class

SimplesamlphpAuthManager
Service to interact with the SimpleSAMLPHP authentication library.

Namespace

Drupal\simplesamlphp_auth\Service

Code

public function isAuthenticated() {
  if ($instance = $this
    ->getSimpleSamlInstance()) {
    return $instance
      ->isAuthenticated();
  }
  return FALSE;
}