Skip to content

fix(auth): Using the App-level http.Agent when fetching public key certificates #705

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

Merged
merged 3 commits into from
Nov 18, 2019

Conversation

hiranya911
Copy link
Contributor

The HTTP call made by verifyIdToken() to fetch public key certificates does not use the http.Agent set on the App. This makes it challenging to use verifyIdToken() API when running behind a proxy. This PR fixes this limitation by injecting the http.Agent to the FirebaseTokenVerifier.

Fixes #690

RELEASE NOTE: The verifyIdToken() method now correctly uses the http.Agent configured during SDK initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firebase-admin auth ignores httpAgent
2 participants