简体   繁体   English

应用引擎同时验证Google帐户和Google Plus

[英]App-engine authenticating google account and google plus at the same time

I am working on a project based on google mobile backend starter. 我正在基于Google移动后端启动程序进行项目。 This is set up to authenticate users using their google account - https://cloud.google.com/developers/articles/mobile-backend-starter-api-reference/#secmod 设置此设置是为了使用他们的Google帐户对用户进行身份验证-https: //cloud.google.com/developers/articles/mobile-backend-starter-api-reference/#secmod

I now want to get a users name and profile image as defaults for their profile. 现在,我想获取一个用户名和个人资料图像作为其个人资料的默认值。 I have implemented the google plus APIs which gives me the information that I want - https://developers.google.com/+/mobile/android/people 我已经实现了google plus API,它为我提供了我想要的信息-https: //developers.google.com/+/mobile/android/people

Unfortunately at the moment I am asking the user to log in to the application with their google account and then asking them to log in again to get their google plus information. 不幸的是,目前我要求用户使用其Google帐户登录到该应用程序,然后要求他们再次登录以获取其Google Plus信息。 So my question is this: is there a way to modify the google plus login such that it takes the authentication from mobile backend starter rather than requiring a separate login? 所以我的问题是这样的:有没有办法修改google plus登录名,使其通过移动后端启动程序进行身份验证,而不需要单独登录?

This is a similar question Can I use Google Plus sign in to authenticate my OAuth methods in app engine? 这是一个类似的问题, 我可以使用Google Plus登录来验证我在应用引擎中的OAuth方法吗? but I specifically want my standard sign in to authenticate the google plus (rather than the other way around) as very few people have an android phone without a google account but a larger percentage dont have a google plus account 但我特别希望我的标准登录信息能够对google plus进行身份验证(而不是相反),因为很少有人拥有不带google帐户的android手机,但是更多的人没有google plus帐户

If in your application you provide a "Sign-in with Google" functionality then you can upgrade that functionality with "Google SignIn Plus". 如果您在应用程序中提供了“使用Google登录”功能,则可以使用“ Google SignIn Plus”升级该功能。 Please refer to the document [1].Also go through the document[2], it gives you an idea how to use the Google+Sign In with your android application. 请参阅文档[1]。也请阅读文档[2],它为您提供了如何在Android应用程序中使用Google+登录的想法。

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

[2] Google SignInfor Android: https://developers.google.com/+/mobile/android/sign-in [2] 适用于Android的Google SignIn: https //developers.google.com/+/mobile/android/sign-in

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM