Skip to content

Commit

Permalink
[FIX] Logout of users in local auth
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Dec 16, 2024
1 parent c69146b commit b9e2e41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/app/blueprints/dashboard/dashboard_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def logout():
try:
logout_request = oidc_client.construct_EndSessionRequest(state=session["oidc_state"])
logout_url = logout_request.request(oidc_client.provider_info["end_session_endpoint"])
track_activity("user '{}' has been logged-out".format(current_user.user), ctx_less=True, display_in_ui=False)
track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False)
logout_user()
session.clear()
return redirect(logout_url)
Expand All @@ -100,7 +100,7 @@ def logout():
log.error(f"Error logging out: {e}")
log.warning(f'Will continue to local logout')

track_activity("user '{}' is being logged-out".format(current_user.user), ctx_less=True, display_in_ui=False)
track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False)

logout_user()
session.clear()
Expand Down

0 comments on commit b9e2e41

Please sign in to comment.