【问题标题】:Why isn't a Mobile App Authentication/Authorization supported by Google Cloud Endpoints?为什么 Google Cloud Endpoints 不支持移动应用身份验证/授权?
【发布时间】:2017-03-06 07:41:00
【问题描述】:

显然,Google Cloud Endpoints 不支持直接允许/限制对私有 Endpoints API 的访问仅限于您的移动应用(Android 或 iOS)。 1234

开发人员可能希望在 Google Cloud Platform 上拥有许多应用程序的后端。而且,这些应用中的许多可能都希望在不让应用用户登录其 Google 帐户的情况下使用后端 API。

(至少是当前版本)端点是否仅适用于用户是 Google 用户或开放 API 的移动应用程序? 还是我错过了什么?

【问题讨论】:

    标签: google-app-engine google-cloud-endpoints


    【解决方案1】:

    您是对的,开箱即用的 Google Cloud Endpoints 仅支持 Google 身份验证,但您可以为首选登录提供商构建自己的身份验证。 Cloud Endpoints 也支持这一点,但由于某种原因,文档没有被传播。

    你需要用接口实现一个类

    com.google.api.server.spi.config.Authenticator
    

    请看下面的例子:

    Google Cloud Endpoints and user's authentication

    问候

    迈克尔

    【讨论】:

    • 谢谢迈克尔。作为一个常见的用例,我希望它能够开箱即用。
    • 你是对的。我希望 Google 能够提供 Firebase 身份验证解决方案
    • 我是 Firebase 的新手。您指的是 [匿名身份验证?] (firebase.google.com/docs/auth/android/anonymous-auth)。这种验证应用程序的方式是否安全/可靠,无需用户登录?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-11
    • 1970-01-01
    • 2018-12-29
    • 1970-01-01
    • 2016-02-03
    • 2017-05-26
    相关资源
    最近更新 更多