google 市场倍数 client_id

google marketplace multiple client_id

我们正在尝试将一款应用投放到需要多个 client_ids

的市场

(应用 运行 Appengine 标准 python 2.7)

所有 client_ids 使用不同的范围。我已经合并了所有范围并将它们输入到市场 SDK 配置中。

当我在测试域上部署应用程序时,似乎只有服务帐户获得授权。 当用户随后访问 Web 应用程序时,他会看到我们想要避免的授权屏幕。

文档 https://developers.google.com/apps-marketplace/preparing?hl=fr 似乎暗示多个 client_id 是可能的。

我应该如何配置市场应用程序以便授权多个 client_ids? 我应该在 api-manager 的凭据配置页面上做一些特别的事情吗?

使用 OAuth 2.0, Service accounts allow a Google Apps domain administrators to grant service accounts domain-wide authority to access user data on behalf of users in the domain. You can also read Server to Server Applications 文档检查您如何实施授权。

Note: You can only use AppAssertionCredentials credential objects in applications that are running on Google App Engine or Google Compute Engine. If you need to run your application in other environments—for example, to test your application locally—you must detect this situation and use a different credential mechanism (see Other). You can use the application default credentials to simplify this process.

希望对您有所帮助。

原来三个 client_id 都被授权了。

我测试这个的那几天,授权生效需要很长时间。 此时所有scopes和clientid都在几分钟内获得授权。