What is the difference between a “service account” and an “installed application”?

笑着哭i 提交于 2019-12-11 03:33:57

问题


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.

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.


回答1:


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?

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.



来源:https://stackoverflow.com/questions/12359824/what-is-the-difference-between-a-service-account-and-an-installed-application

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