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

[Auth] Remove httpMethod from AuthRequestConfiguration #14143

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Nov 18, 2024

  1. The AuthRequestConfiguration's properties should not be specific to an individual request.
  2. Clean up AuthRPCRequest protocol to remove throwing method and remove containsPostBody API.

In practice, the request is passed to GTMSessionFetcher which will change the httpMethod as necessary: https://github.com/google/gtm-session-fetcher/blob/ef9a60ba09dff71540c8bf612fb778a3af790a7e/Sources/Core/GTMSessionFetcher.m#L721-L732

#no-changelog

@ncooke3 ncooke3 changed the title [Auth] Remote httpMethod from AuthRequestConfiguration [Auth] Remove httpMethod from AuthRequestConfiguration Nov 19, 2024
Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup!

Copy link
Contributor

@andrewheard andrewheard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ncooke3! LGTM, I think it's safer for us to set the right HTTP method instead of relying on GTMSessionFetcher to fix it for us (and will also make migration easier if we ever needed to move to directly using URLSession).

@ncooke3 ncooke3 merged commit d2ff93c into main Nov 19, 2024
55 checks passed
@ncooke3 ncooke3 deleted the nc/remove-http-method branch November 19, 2024 15:49
@firebase firebase locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants