Skip to content

Commit

Permalink
Redirect to root path
Browse files Browse the repository at this point in the history
  • Loading branch information
dcyoung-dev committed Jan 31, 2025
1 parent 92c2d22 commit 609b342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/one_login_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def sign_out_complete

def failure
terminate_session
redirect_to internal_server_error_path
redirect_to root_path
end

private
Expand Down
4 changes: 2 additions & 2 deletions spec/requests/one_login_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@
end

describe 'GET /auth/one-login/failure' do
it 'redirects to internal_server_error_path' do
it 'redirects to the root_path' do
allow(Sentry).to receive(:capture_message)

get auth_failure_path(params: { message: 'error_message', strategy: 'one_login' })

expect(response).to redirect_to(internal_server_error_path)
expect(response).to redirect_to(root_path)
end
end
end

0 comments on commit 609b342

Please sign in to comment.