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

lolsob-rspec
CSDUMMI 2023-03-15 03:52:40 +01:00 committed by GitHub
parent 23bce96f0c
commit cfc04637b5
1 changed files with 5 additions and 1 deletions

View File

@ -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