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

Optionally provide a custom http.Client #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nealey
Copy link

@nealey nealey commented Aug 4, 2018

I added this so I could get out of Google Compute Engine, but this could also be helpful for people behind proxies or using other unusual configurations. This simply adds a new auth.NewClientWithHttpClient method, everything else remains the same.

@andig
Copy link

andig commented Mar 29, 2020

Should probably not accept a client struct but rather an interface to allow testability.

@andig andig mentioned this pull request Jan 30, 2021
@andig
Copy link

andig commented Oct 19, 2021

We've implemented this in https://github.com/bogosj/tesla

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.

2 participants