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: universe domain support for service account #1286

Merged
merged 6 commits into from
May 10, 2023
Merged

Conversation

arithmetic1728
Copy link
Contributor

Support universe_domain field from service account json file. The default value is "googleapis.com".

If the value is not default, then
(1) for access token, we will always use self signed jwt flow. Note that domain wide delegation is not supported, so if subject is provided we will throw exceptions.
(2) for id token, we will always use iamcredentials.generateIdToken endpoint. Note that iam.serviceAccountTokenCreator role is required to call this endpoint.

@arithmetic1728 arithmetic1728 requested review from a team as code owners May 6, 2023 05:08
google/oauth2/service_account.py Outdated Show resolved Hide resolved
google/oauth2/service_account.py Outdated Show resolved Hide resolved
google/oauth2/service_account.py Show resolved Hide resolved
google/oauth2/service_account.py Show resolved Hide resolved
Copy link
Member

@TimurSadykov TimurSadykov left a comment

Choose a reason for hiding this comment

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

LGTM

@arithmetic1728 arithmetic1728 merged commit 821c1b6 into main May 10, 2023
12 checks passed
@arithmetic1728 arithmetic1728 deleted the universe_domain branch May 10, 2023 09:14
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

4 participants