Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send GET request parameters as query params [SDK-3324] #678

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Apr 27, 2022

✏️ Changes

Currently, Auth0.swift’s Request will send all parameters in the request body. This is not correct for Authentication API GET requests like /userinfo requests. Therefore requests to /userinfo that include custom parameters will fail.

Screen Shot 2022-04-25 at 20 41 38

The Android SDK handles this case correctly, by sending the parameters as query params:

Screen Shot 2022-04-25 at 20 41 23

This bug was found while doing manual testing for the upcoming Flutter SDK.

This PR fixes the bug by sending the GET request parameters as query params. The changes are unit-tested, and were manually tested as well.

✅ Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@Widcket Widcket requested a review from a team as a code owner April 27, 2022 02:47
@Widcket Widcket merged commit 2c8df1b into master Apr 27, 2022
@Widcket Widcket mentioned this pull request Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants