golang-samples icon indicating copy to clipboard operation
golang-samples copied to clipboard

refactor old idtoken logic to use library instead of gcloud

Open codyoss opened this issue 4 years ago • 2 comments

https://github.com/GoogleCloudPlatform/golang-samples/blob/22d8055a29603cf7f9e459522f7dbb5d70d726f8/internal/cloudrunci/gcloud.go#L96-L110

codyoss avatar Sep 17 '21 14:09 codyoss

I'm looking to get some more hands-on practice in Golang codebases. If this is still relevant and needs cleanup, can you provide some more details about what is involved. If I understand correctly, it is replacing the gcloud call gcloud --quiet auth print-identity-token with a call from golang pkg cloud.google.com/go. Looking through the docs, I can't seem to find equivalent functionality.

Jeadie avatar Feb 08 '22 10:02 Jeadie

@Jeadie I have not looked into this too much, but I image the idtoken package could be used here.

codyoss avatar Feb 09 '22 22:02 codyoss