diff options
author | CSDUMMI <31551856+CSDUMMI@users.noreply.github.com> | 2023-03-15 03:52:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 03:52:40 +0100 |
commit | 39c723664998e73778a528ed0d467faed2c160dc (patch) | |
tree | 18fe0b7b00bc73dbc05c6832d6b040b58b777e2f | |
parent | 1d0ad558ff51ce3e42ef4e4c9a9bed3c4b722d0d (diff) |
Redirect users to SLO at the IdP after logging them out of Mastodon. (#24020)
-rw-r--r-- | app/controllers/application_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ad70e28ab..cee2061b5 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -61,7 +61,11 @@ class ApplicationController < ActionController::Base 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 |