【问题标题】:App-engine authenticating google account and google plus at the same timeApp-engine同时验证google账号和google plus
【发布时间】:2014-10-07 16:37:32
【问题描述】:

我正在开发一个基于谷歌移动后端启动器的项目。这是设置为使用他们的谷歌帐户对用户进行身份验证 - https://cloud.google.com/developers/articles/mobile-backend-starter-api-reference/#secmod

我现在想获取用户名和个人资料图片作为他们个人资料的默认值。我已经实现了 google plus API,它为我提供了我想要的信息 - https://developers.google.com/+/mobile/android/people

不幸的是,目前我要求用户使用他们的 google 帐户登录应用程序,然后要求他们再次登录以获取他们的 google plus 信息。所以我的问题是:有没有办法修改 google plus 登录,使其从移动后端启动器获取身份验证,而不需要单独登录?

这是一个类似的问题Can I use Google Plus sign in to authenticate my OAuth methods in app engine?,但我特别希望我的标准登录来验证 google plus(而不是相反),因为很少有人拥有没有 google 帐户的 android 手机,但更大比例的人没有一个 Google+ 帐户

【问题讨论】:

    标签: android google-app-engine google-plus google-play-services


    【解决方案1】:

    如果您在您的应用程序中提供了“使用 Google 登录”功能,那么您可以使用“Google SignIn Plus”升级该功能。请参考文档 [1]。也请阅读文档 [2],它让您了解如何在您的 Android 应用程序中使用 Google+Sign In。

    [1]Google SignIn Plus: https://developers.google.com/accounts/docs/OpenID#update-to-plus

    [2]Android 版 Google 登录: https://developers.google.com/+/mobile/android/sign-in

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-04
      • 2011-05-29
      • 1970-01-01
      • 2023-04-03
      • 2014-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多