是什么&QUOT之间的区别;服务帐户]和"安装的应用程序"? [英] What is the difference between a "service account" and an "installed application"?

查看:158
本文介绍了是什么&QUOT之间的区别;服务帐户]和"安装的应用程序"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,主要的区别在于,一个服务帐户不需要用户登录授权,而安装的应用程序一样。

To my understanding, the main difference is that a service account doesn't require a user to log in for authorization, while an installed application does.

我想提出一个Android应用程序(一个安装的应用程序?),提供了一个应用程序内订阅,并且不要求用户登录到帐户(服务帐户?)。所有我想要做的是检查用户是否已经购买订阅。要获得在谷歌Play开发者API 客户端ID,我必须把它作为申报或者已安装的应用程序或服务帐户,我不能确定它与去。

I am making an Android app (an "installed application"?) that offers an in-app subscription, and doesn't require the user to log in to an account (a "service account"?). All that I want to do is to check whether or not the user has purchased a subscription. To get a Client ID for the Google Play Developer API, I have to declare it as either an installed application or a service account, and am unsure which to go with.

推荐答案

当你想要处理的服务的服务帐户用于其自己的资源(例如,用于管理Compute Engine资源App Engine应用程序),相对于外部用户(例如,标准的OAuth流量)的资源。使用服务帐户的应用程序将是资源的拥有者,也没有用户将不得不参与 - 他们不是用户的资源,因此他们为什么会

A Service Account is used when you have a service that wants to handle its "own" resources (e.g., an App Engine app that manages Compute Engine resources), as opposed to the resources of an external user (e.g., the standard OAuth flow). Using a Service Account the app will be the owner of the resources, and no user will have to be involved -- they're not the user's resources, so why would they be?

安装的应用程序是pretty简单 - 它是由用户安装到管理用户的资源的应用程序。如果您的应用管理用户的资源,你的将会的需要问他们的许可。还有周围没有办法。

An Installed Application is pretty straightforward -- it's an app installed by the user to manage the user's resources. If your app is managing a user's resources, you will need to ask their permission. There's no way around that.

这篇关于是什么&QUOT之间的区别;服务帐户]和"安装的应用程序"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆