Skip to content

Commit

Permalink
24Slides#105: Destroy local session during SLO flow
Browse files Browse the repository at this point in the history
  • Loading branch information
RoSk0 committed Nov 27, 2024
1 parent 85dadba commit ff657ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use OneLogin\Saml2\Auth as OneLoginAuth;
use OneLogin\Saml2\Error as OneLoginError;
use OneLogin\Saml2\Utils as OneLoginUtils;
use Slides\Saml2\Events\SignedOut;
use Slides\Saml2\Models\Tenant;

Expand Down Expand Up @@ -167,6 +168,7 @@ public function acs()
public function sls($retrieveParametersFromServer = false)
{
$this->base->processSLO(false, null, $retrieveParametersFromServer, function () {
OneLoginUtils::deleteLocalSession();
event(new SignedOut());
});

Expand Down

0 comments on commit ff657ea

Please sign in to comment.