Skip to content

Commit

Permalink
revert changes to sign-out
Browse files Browse the repository at this point in the history
  • Loading branch information
toufali committed Feb 28, 2024
1 parent 27cae40 commit 4d68c43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ def skip_csrf_meta_tags?
end

def after_sign_out_path_for(_resource_or_scope)
root_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
3 changes: 0 additions & 3 deletions app/controllers/auth/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ class Auth::SessionsController < Devise::SessionsController
skip_before_action :require_functional!
skip_before_action :update_user_sign_in

# Allow any client to call /auth/sign_out via a delete call
skip_before_action :verify_authenticity_token, only: [:destroy]

prepend_before_action :check_suspicious!, only: [:create]

include TwoFactorAuthenticationConcern
Expand Down

0 comments on commit 4d68c43

Please sign in to comment.