Closed jonasfj closed 4 years ago
Copying most of what the golang client is doing; https://godoc.org/golang.org/x/oauth2/google#FindDefaultCredentials
There might be some tricks around using the metadata set by gcloud auth application-default set-quota-project, see: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/set-quota-project
gcloud auth application-default set-quota-project
But from what I can see, the golang doesn't have any special handling for this yet.
I did a bunch of refactoring to allow for minimal testing, and added support for gcloud auth application-default set-quota-project meta-data...
Copying most of what the golang client is doing; https://godoc.org/golang.org/x/oauth2/google#FindDefaultCredentials
There might be some tricks around using the metadata set by
gcloud auth application-default set-quota-project
, see: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/set-quota-projectBut from what I can see, the golang doesn't have any special handling for this yet.