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

fix: Skip checking projectid on cred if env var is set #1349

Merged
merged 3 commits into from
Jul 13, 2023

Conversation

sai-sunder-s
Copy link
Contributor

For external account credentials, the project id is obtained through an API call and that involves creating a token first. If project id is set already in environment, that is the value that is going to be returned by google.auth.default and the value read through the API is discarded.
Updating logic so that if env var is set, then dont make an API call for project.

@sai-sunder-s sai-sunder-s requested review from a team as code owners July 12, 2023 18:52
google/auth/_default.py Show resolved Hide resolved
tests/test__default.py Show resolved Hide resolved
@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 13, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 13, 2023
@sai-sunder-s sai-sunder-s merged commit a4135a3 into main Jul 13, 2023
@sai-sunder-s sai-sunder-s deleted the byoidprojectid branch July 13, 2023 16:43
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.

6 participants