You are here

public function SimplesamlphpAuthManager::logout in simpleSAMLphp Authentication 8.3

Log a user out through the SimpleSAMLphp instance.

Parameters

string $redirect_path: The path to redirect to after logout.

1 method overrides SimplesamlphpAuthManager::logout()
SimplesamlphpAuthTestManager::logout in tests/simplesamlphp_auth_test/src/SimplesamlphpAuthTestManager.php
Log a user out through the SimpleSAMLphp instance.

File

src/Service/SimplesamlphpAuthManager.php, line 322

Class

SimplesamlphpAuthManager
Service to interact with the SimpleSAMLPHP authentication library.

Namespace

Drupal\simplesamlphp_auth\Service

Code

public function logout($redirect_path = NULL) {
  if (!$redirect_path) {
    $redirect_path = base_path();
  }
  if ($instance = $this
    ->getSimpleSamlInstance()) {
    $instance
      ->logout($redirect_path);
  }
}