You are here

public function SamlController::logout in SAML Authentication 8

Same name and namespace in other branches
  1. 8.3 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::logout()
  2. 8.2 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::logout()
  3. 4.x src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::logout()

Redirect to the SLS service on the IDP.

1 string reference to 'SamlController::logout'
samlauth.routing.yml in ./samlauth.routing.yml
samlauth.routing.yml

File

src/Controller/SamlController.php, line 70
Contains Drupal\samlauth\Controller\SamlController.

Class

SamlController
Class SamlController.

Namespace

Drupal\samlauth\Controller

Code

public function logout() {
  $config = samlauth_get_config();
  $this->saml
    ->logout($config['sp']['singleLogoutService']['url']);
}