Skip to content

feat(auth): add httptransport package#8567

Merged
codyoss merged 6 commits intogoogleapis:mainfrom
codyoss:auth5
Sep 13, 2023
Merged

feat(auth): add httptransport package#8567
codyoss merged 6 commits intogoogleapis:mainfrom
codyoss:auth5

Conversation

@codyoss
Copy link
Copy Markdown
Member

@codyoss codyoss commented Sep 13, 2023

This package is the equivalent of
google.golang.org/api/transport/http for the new auth library. The biggest different is the main function does not return an endpoint so we will want to add a helper in gax or somewhere for this. Also, there are is an extra helper to add a TokenProvider to a http.Client which should elveate some user needs for extra extenisablity of a client. They can simply customize away and user the helper to add auth.

This PR is part 1 of 2 to make it easier to review. Took away anything dealing with certs/tls for now and will fast follow and comment back in some of the code in this PR.

@product-auto-label product-auto-label Bot added the size: xl Pull request size is extra large. label Sep 13, 2023
This package is the equivalent of
google.golang.org/api/transport/http for the new auth library. The
biggest different is the main function does not return an endpoint
so we will want to add a helper in gax or somewhere for this. Also,
there are is an extra helper to add a TokenProvider to a http.Client
which should elveate some user needs for extra extenisablity of a
client. They can simply customize away and user the helper to add
auth.
@codyoss codyoss marked this pull request as ready for review September 13, 2023 18:00
@codyoss codyoss requested a review from a team September 13, 2023 18:00
codyoss added a commit to codyoss/google-cloud-go that referenced this pull request Sep 13, 2023
Comment thread auth/httptransport/trace.go
Comment thread auth/httptransport/trace.go
Comment thread auth/httptransport/httptransport.go
Comment thread auth/httptransport/trace.go
@codyoss codyoss merged commit 6898597 into googleapis:main Sep 13, 2023
@codyoss codyoss deleted the auth5 branch September 13, 2023 23:10
codyoss added a commit to codyoss/google-cloud-go that referenced this pull request Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants