Skip to content

Commit

Permalink
Specify redirect to root, otherwise it will go to HTTP_REFERER
Browse files Browse the repository at this point in the history
Which in the test for some reason is set to the same authorize path that was just POSTed to
  • Loading branch information
fbacall committed Dec 19, 2024
1 parent 423fafb commit c786dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/omniauth_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def setup
assert_nil session[:user_id]

# AAI
post omniauth_authorize_path(:elixir_aai)
post omniauth_authorize_path(:elixir_aai, state: 'return_to:/')
follow_redirect!
assert_redirected_to root_path
assert_equal existing_user.id, session[:user_id]
Expand Down

0 comments on commit c786dfb

Please sign in to comment.