Skip to content

fix: user credentials (authorized_user) not working#51

Open
pokutuna wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
pokutuna:fix-adc-error-message-check
Open

fix: user credentials (authorized_user) not working#51
pokutuna wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
pokutuna:fix-adc-error-message-check

Conversation

@pokutuna
Copy link

fixes #50

The error message from idtoken.NewTokenSource() changed in
google.golang.org/api v0.106.0 from "credential must be service_account"
to "unsupported credentials type". This broke ADC fallback when using
gcloud auth application-default login.

Update the error message check in findTokenSource() to match the new
error format.
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.

Bug: User credentials (authorized_user) not working

1 participant