【问题标题】:Is there authentication, as in Google Firebase even in the Google Cloud platform?是否有身份验证,就像在 Google Firebase 中一样,甚至在 Google Cloud 平台中?
【发布时间】:2019-09-14 16:02:24
【问题描述】:

我需要在 Google Cloud Platform 中识别类似的身份验证,例如 Google Firebase 提供的服务。我想通过电子邮件和密码验证用户。

我开发了一个在 GCP AppEngine 中运行的网络应用。此 Web 应用程序通过用户的电子邮件和密码对用户进行身份验证。但我不会托管自定义 OAuth 服务器。 GCP 是否也提供 OAuth 服务器或类似的身份验证服务?

还是应该改用 Google Firebase 身份验证?

【问题讨论】:

    标签: firebase google-cloud-platform


    【解决方案1】:

    您当然可以推出自己的身份验证,但也可以将 Firebase 身份验证与您自己的 App Engine 后端结合使用。让用户在客户端应用中使用 Firebase 身份验证登录 send the ID token over a secure connection from the client to your App Engine server,然后在您的 App Engine 代码中使用 verify the ID token

    【讨论】:

    • GCP没有这样的Auth Service?
    • 您希望从中获得什么优势?有cloud.google.com/identity-platform,但它几乎只是围绕 Firebase 身份验证的一层。
    • 您的回答也很有帮助。非常感谢。
    【解决方案2】:

    您可以创建一个直接链接到您的 GCP 项目的 Firebase 项目(只需在 Firebase 项目创建对话框中找到您的 GCP 项目)。

    根据所需的语言,他们有几个教程解释了 Firebase Auth 的方式,例如App Engine 可以与示例代码一起使用。见:

    https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine

    【讨论】:

      猜你喜欢
      • 2021-05-18
      • 1970-01-01
      • 2017-09-23
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      • 2022-01-11
      • 2023-03-04
      相关资源
      最近更新 更多