Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Redirect users to SLO at the IdP after logging them out of Mastodon. (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
CSDUMMI authored Mar 15, 2023
1 parent 1d0ad55 commit 39c7236
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ def require_functional!
end

def after_sign_out_path_for(_resource_or_scope)
new_user_session_path
if ENV['OMNIAUTH_ONLY'] == 'true' && ENV['OIDC_ENABLED'] == 'true'
'/auth/auth/openid_connect/logout'
else
new_user_session_path
end
end

protected
Expand Down

0 comments on commit 39c7236

Please sign in to comment.