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 access token credentials #476

Merged
merged 4 commits into from
Mar 27, 2020
Merged

Conversation

arithmetic1728
Copy link
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
google/auth/_cloud_sdk.py Outdated Show resolved Hide resolved
google/oauth2/credentials.py Outdated Show resolved Hide resolved
google/auth/_cloud_sdk.py Outdated Show resolved Hide resolved
google/oauth2/credentials.py Show resolved Hide resolved
google/auth/exceptions.py Outdated Show resolved Hide resolved
@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 join this conversation on GitHub. Already have an account? Sign in to comment
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