[英]Using google cloud service account
I am given a google cloud service account with 1] A client id 2] An email id 3] Certificate fingerprint 4] .p12 file 我获得了一个Google云服务帐户,其中包含1]客户端ID 2]电子邮件ID 3]证书指纹4] .p12文件
I had a java process previously that was communicating with big query with my own personal email account with client secret file etc. This setup is working just fine. 我以前有一个Java进程,该进程正在使用我自己的个人电子邮件帐户(带有客户端机密文件等)与大型查询进行通信。
Now that I have to use this service account, I did not see any client secret provided with this account. 现在,我必须使用此服务帐户,因此看不到此帐户提供的任何客户机密。 I am wondering how am i supposed to integrate this service account into my current process.
我想知道我应该如何将此服务帐户集成到当前流程中。
I tried to find a bunch of things on google but finally found this: https://developers.google.com/identity/protocols/OAuth2ServiceAccount 我试图在Google上找到一堆东西,但最终找到了这个东西: https : //developers.google.com/identity/protocols/OAuth2ServiceAccount
is this correct way to use this or for service accounts there is something else ? 这是用于服务帐户的正确方法还是针对其他服务帐户? Is there a better example somewhere where i can see proper steps to use the info i have to access google cloud from my app with a service account.
有没有更好的例子,我可以在其中看到适当的步骤来使用信息,我必须通过服务帐户从我的应用访问Google Cloud。
Thanks. 谢谢。
Yes, the link you have is the way to use service account. 是的,您拥有的链接是使用服务帐户的方式。 You need to get the "client secret" from the developer console , in the form of a json or p12 file.
您需要从开发人员控制台以json或p12文件的形式获取“客户端机密”。
As for example, storage-serviceaccount-cmdline-sample should serve as a good simple sample. 例如, storage-serviceaccount-cmdline-sample应该是一个很好的简单示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.