Where are Google Application Default Credentials stored?

回眸只為那壹抹淺笑 提交于 2020-01-03 07:33:30

问题


When you run gcloud auth login or gcloud auth list, where is it storing the credentials?

https://developers.google.com/identity/protocols/application-default-credentials


回答1:


I found them. They are in ~/.config/gcloud/credentials. I was able to pass the default credentials to the docker image I'm working on by mounting them docker run --rm -it -v ~/.config/gcloud:/root/.config/gcloud alpine:3.4 sh.




回答2:


Windows:

C:\Users\%username%\AppData\Roaming\gcloud\credentials

C:\Users\%username%\AppData\Roaming\gcloud\legacy_credentials



来源:https://stackoverflow.com/questions/40032678/where-are-google-application-default-credentials-stored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!