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

A proxy setting in getToken #65

Closed
jojonki opened this issue Nov 10, 2015 · 2 comments
Closed

A proxy setting in getToken #65

jojonki opened this issue Nov 10, 2015 · 2 comments
Assignees
Labels
docs 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@jojonki
Copy link

jojonki commented Nov 10, 2015

I faced a trouble of setting proxy during getting token. When this library tries to get token, it looks it doesn't consider proxy setting. My code works if I set a proxy as a request property directly.
https://github.com/google/google-auth-library-nodejs/blob/master/lib/auth/oauth2client.js#L143

Or are there any ways to setting proxy even if trying to getting tokens?

@runk
Copy link

runk commented Mar 22, 2016

Stuck at the same issue.

You can set HTTP_PROXY and HTTPS_PROXY environment vars to corresponding value. Those vars are recognized by request module which google-auth-library-nodejs uses internally

@JustinBeckwith
Copy link
Contributor

Turns out this works out of the box via the HTTP_PROXY and HTTPS_PROXY env vars :) Adding docs around that in #221.

@JustinBeckwith JustinBeckwith self-assigned this Dec 27, 2017
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants