【问题标题】:Custom Authentication in Google Cloud Mobile Backend Starter in AndroidAndroid 中 Google Cloud Mobile Backend Starter 中的自定义身份验证
【发布时间】:2014-01-28 01:07:38
【问题描述】:

我们可以在 Mobile Backend Starter 中实现自定义身份验证吗?我希望用户使用 facebook 帐户登录,而不是 google 帐户。这可能吗?

【问题讨论】:

  • 你在这方面有什么进展吗?如果我们可以与其他提供商一起登录,我会非常感兴趣。
  • 同意。很高兴看到这个问题的答案。

标签: android google-cloud-endpoints facebook-authentication


【解决方案1】:

要回答您的问题,是的,可以实施其他 OAuth2 授权,例如 Facebook、LinkedIn 或 Twitter。

Here's 有代码示例如何实现这一点。

简而言之,您必须实现自己的 Authenticator 并更新 @Api 注释以将自定义身份验证器考虑在内。

@Api(name = "example", authenticators = { CustomAuthenticator.class })

有关自定义身份验证器的更多信息,请访问Google documentation

【讨论】:

    【解决方案2】:

    不幸的是,我还没有看到任何官方支持/文档​​/在线教程/实验可以做到这一点。将密切关注,因为我也在一个 MBS 实例中滚动。 那么有允许未经身份验证的请求的 OPEN 模式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-02-03
      • 1970-01-01
      • 2014-06-07
      • 1970-01-01
      • 1970-01-01
      • 2013-06-02
      • 1970-01-01
      相关资源
      最近更新 更多