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

feat: Add extension method for IHttpExecuteInterceptor to create a DelegatingHandler #2453

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

jskeet
Copy link
Collaborator

@jskeet jskeet commented Jul 7, 2023

This is a proposed plan for #2450

Lacking documentation and tests right now...

(Basically, this is all simple if folks have a concrete credential, as they all either implement IHttpExecuteInterceptor, or can do so very simply, such as GoogleCredential.)

@jskeet jskeet added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 7, 2023
@jskeet jskeet requested a review from a team as a code owner July 7, 2023 14:09
Copy link
Contributor

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

Yep, this looks good

@jskeet
Copy link
Collaborator Author

jskeet commented Jul 7, 2023

Great. Will wait for feedback from @EricStG, then write a quick integration test (e.g. listing Storage buckets), fill in docs etc - next week.

@jskeet jskeet force-pushed the delegating-auth-handler branch from 58f3501 to ae5362d Compare July 10, 2023 17:25
@jskeet jskeet changed the title Prototype of DelegatingHandler for auth feat: Add extension method for IHttpExecuteInterceptor to create a DelegatingHandler Jul 10, 2023
@jskeet jskeet removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 10, 2023
@jskeet
Copy link
Collaborator Author

jskeet commented Jul 10, 2023

Given the simplicity of the code, I've only added an integration test. Let me know if you'd like unit tests as well.

@jskeet
Copy link
Collaborator Author

jskeet commented Jul 10, 2023

(I can split the PR into two, one adding the interface to GoogleCredential and one adding the extension method, if that would be useful.)

Once this is released, I'll add documentation to https://cloud.google.com/dotnet/docs/reference/help/rest-libraries

Copy link
Contributor

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

LGTM

@jskeet jskeet merged commit b05c9da into googleapis:main Jul 10, 2023
@jskeet jskeet deleted the delegating-auth-handler branch July 10, 2023 19:59
amanda-tarafa added a commit that referenced this pull request Sep 5, 2023
Updates support version: 1.61.0 -> 1.61.1

Bugs:

* [#2506](#2506) Which uses the invariant culture to convert DateTimeOffset.

Features:

* [#2453](#2453) Which adds an extension method for IHttpExecuteInterceptor to create a DelegatingHandler
amanda-tarafa added a commit that referenced this pull request Sep 5, 2023
Updates support version: 1.61.0 -> 1.61.1

Bugs:

* [#2506](#2506) Which uses the invariant culture to convert DateTimeOffset.

Features:

* [#2453](#2453) Which adds an extension method for IHttpExecuteInterceptor to create a DelegatingHandler
amanda-tarafa added a commit that referenced this pull request Sep 5, 2023
Updates support version: 1.61.0 -> 1.61.1

Bugs:

* [#2506](#2506) Which uses the invariant culture to convert DateTimeOffset.

Features:

* [#2453](#2453) Which adds an extension method for IHttpExecuteInterceptor to create a DelegatingHandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants