Skip to content

Commit

Permalink
Revert authorization_spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ransombriggs committed Oct 18, 2024
1 parent e263615 commit a33a90a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions spec/requests/endpoints/authorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@

scenario "raises exception on forged requests" do
allowing_forgery_protection do
page.driver.post authorization_endpoint_url(
client_id: @client.uid,
redirect_uri: @client.redirect_uri,
response_type: "code",
)
expect(page).to have_http_status(422)
expect do
page.driver.post authorization_endpoint_url(
client_id: @client.uid,
redirect_uri: @client.redirect_uri,
response_type: "code",
)
end.to raise_error(ActionController::InvalidAuthenticityToken)
end
end
end
Expand Down

0 comments on commit a33a90a

Please sign in to comment.