Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

feat: add access token credentials#476

Merged
arithmetic1728 merged 4 commits into
masterfrom
sijun/accesstoken
Mar 27, 2020
Merged

feat: add access token credentials#476
arithmetic1728 merged 4 commits into
masterfrom
sijun/accesstoken

Conversation

@arithmetic1728
Copy link
Copy Markdown
Contributor

@arithmetic1728 arithmetic1728 commented Mar 27, 2020

(1) Add UserAccessTokenCredentials class which uses gcloud auth print-access-token to obtain user account access token. This token is used to access api endpoint when mtls is enforced.
(2) Remove google.auth._cloud_sdk.load_authorized_user_credentials since it is a duplicate of google.oauth2.credentials.from_authorized_user_info. Also has to remove this to avoid cyclic import problem.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 27, 2020
Comment thread google/auth/_cloud_sdk.py Outdated
Comment thread google/oauth2/credentials.py Outdated
Comment thread google/auth/_cloud_sdk.py Outdated
Comment thread google/oauth2/credentials.py
Comment thread google/auth/exceptions.py Outdated
@arithmetic1728 arithmetic1728 merged commit 772dac6 into master Mar 27, 2020
@arithmetic1728 arithmetic1728 deleted the sijun/accesstoken branch March 27, 2020 21:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants