Browse Source

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

closed-social-glitch-2
CSDUMMI 1 year ago
committed by GitHub
parent
commit
39c7236649
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/controllers/application_controller.rb

+ 5
- 1
app/controllers/application_controller.rb View File

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

Loading…
Cancel
Save