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: add cred info to ADC creds #1587

Merged
merged 4 commits into from
Sep 12, 2024
Merged

feat: add cred info to ADC creds #1587

merged 4 commits into from
Sep 12, 2024

Conversation

arithmetic1728
Copy link
Contributor

@arithmetic1728 arithmetic1728 commented Aug 20, 2024

Add a get_cred_info() method to ADC cred. If the cred comes from google.auth.default() or a copy of such cred, the method returns a JSON to tell the cred file path, cred type and the principal if available. See go/python-auth-error-message-improvement.

@arithmetic1728 arithmetic1728 changed the title [Work in progress] feat: add cred info to ADC creds feat: add cred info to ADC creds Aug 28, 2024
@lsirac lsirac requested a review from aeitzman August 28, 2024 20:55
google/auth/credentials.py Outdated Show resolved Hide resolved
google/auth/external_account.py Show resolved Hide resolved
google/auth/_default.py Show resolved Hide resolved
@arithmetic1728
Copy link
Contributor Author

@aeitzman Any questions on this PR? If not I am going to merge it. Thanks!

@arithmetic1728 arithmetic1728 merged commit 6f75dd5 into main Sep 12, 2024
16 checks passed
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.

3 participants