public function SamlController::sls in SAML Authentication 8.2
Same name and namespace in other branches
- 8.3 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::sls()
- 8 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::sls()
- 4.x src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::sls()
Single Logout Service.
This is usually the second step in the logout flow; the SLS service on the IDP should redirect here.
Return value
\Drupal\Core\Routing\TrustedRedirectResponse
1 string reference to 'SamlController::sls'
File
- src/
Controller/ SamlController.php, line 182
Class
- SamlController
- Returns responses for samlauth module routes.
Namespace
Drupal\samlauth\ControllerCode
public function sls() {
try {
$url = $this->saml
->sls();
if (!$url) {
$url = $this
->getRedirectUrlAfterProcessing();
}
} catch (Exception $e) {
$this
->handleException($e, 'processing SAML single-logout response');
$url = Url::fromRoute('<front>');
}
return $this
->createRedirectResponse($url);
}