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

fix: deprecate UserAccessTokenCredentials#1344

Merged
arithmetic1728 merged 1 commit intomainfrom
deprecate
Jul 6, 2023
Merged

fix: deprecate UserAccessTokenCredentials#1344
arithmetic1728 merged 1 commit intomainfrom
deprecate

Conversation

@arithmetic1728
Copy link
Contributor

fix #1341

UserAccessTokenCredential was initially added for mTLS feature since at that time user credentials had issues (which is already fixed now). Therefore we want to deprecate UserAccessTokenCredential since it's google-auth specific, and not available in other languages. Users are recommended to use user credentials instead (google.oauth2.credentials.Credentials), which is a generic application default credential type available in all languages. To use it, simply run gcloud auth application-default login and let the client libraries automatically use it.

@arithmetic1728 arithmetic1728 requested a review from a team July 6, 2023 21:39
@arithmetic1728 arithmetic1728 requested a review from a team as a code owner July 6, 2023 21:39
@arithmetic1728 arithmetic1728 requested a review from clundin25 July 6, 2023 21:40
@arithmetic1728 arithmetic1728 merged commit 5f97fe9 into main Jul 6, 2023
@arithmetic1728 arithmetic1728 deleted the deprecate branch July 6, 2023 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Token refresh on each API request when using UserAccessTokenCredentials

2 participants