Skip to content

Commit

Permalink
try to fix oidc logout error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-staab committed Jan 21, 2025
1 parent 3fcded3 commit c808358
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Services/Auth/OidcAuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ public function groupMapping(): Collection
return collect(config('services.oidc.group-mapping'));
}

public function afterLogout()
public function afterLogout(): RedirectResponse
{
\Session::flush();

return redirect(to: config('services.oidc.logout_url'));
return redirect()->to(config('services.oidc.logout_url'));
}

public function allCommittees(): Collection
Expand Down

0 comments on commit c808358

Please sign in to comment.