Skip to content
Snippets Groups Projects
Unverified Commit 39c72366 authored by CSDUMMI's avatar CSDUMMI Committed by GitHub
Browse files

Redirect users to SLO at the IdP after logging them out of Mastodon. (#24020)

parent 1d0ad558
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,11 @@ class ApplicationController < ActionController::Base ...@@ -61,7 +61,11 @@ class ApplicationController < ActionController::Base
end end
def after_sign_out_path_for(_resource_or_scope) 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 end
protected protected
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment