Skip to content

Incorrect use of google.CredentialsFromJSON? #6996

@feliperyan

Description

@feliperyan

google.CredentialsFromJSON is being called with the equivalent of

{
    "token": "some_token_value",
    "type": "authorized_user"
}

Although no error is returned, it's constructing an empty google.Credentials struct. I think this results on application default credentials always being called.

cmd := exec.Command("gcloud", "auth", "print-access-token", "--format=json")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions