'logout', ]; } public function logout(LogoutEvent $event): void { $token = $event->getToken(); if (!$token instanceof SamlToken) { return; } $samlAuth = $this->samlAuth->create(); try { $samlAuth->processSLO(); } catch (Error $e) { if (!empty($samlAuth->getSLOurl())) { $sessionIndex = $token->hasAttribute('sessionIndex') ? $token->getAttribute('sessionIndex') : null; $samlAuth->logout(null, [], $token->getUserIdentifier(), $sessionIndex); } } } }