We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From #3302:
I finally got around to testing #3306. Unfortunately it doesn't work.
I suspect the issue is the creds used when there is no ADC is empty:
creds
creds = &google.Credentials{}
So creds.TokenSource is not set and the API requests fail.
creds.TokenSource
One possibility for solving this is using something like the following to generate a valid creds instance:
creds, _ = google.CredentialsFromJSON(ctx, []byte(`{"type": "service_account"}`))
Or use golang.org/x/oauth2/jwt to create the token source:
creds.TokenSource = &jwt.Config{ Scopes: []string{"https://www.googleapis.com/auth/cloud-platform"}, TokenURL: google.JWTTokenURL, }.TokenSource(ctx)
The text was updated successfully, but these errors were encountered:
#3317 fixes this issue.
Sorry, something went wrong.
No branches or pull requests
From #3302:
I finally got around to testing #3306. Unfortunately it doesn't work.
I suspect the issue is the
creds
used when there is no ADC is empty:So
creds.TokenSource
is not set and the API requests fail.One possibility for solving this is using something like the following to generate a valid
creds
instance:Or use golang.org/x/oauth2/jwt to create the token source:
The text was updated successfully, but these errors were encountered: