有没有一种方法,我可以使用谷歌凭据得到这样基本的用户信息
Is there a way I can use Google credentials to get basic user info like
电子邮件,姓名,性别
在我的应用程序中使用它们?这就像让用户能够登录到使用Gmail我的申请。
and use them in my application? Its like allowing user to login into my application using Gmail.
我问了同样的here.
但回答说:
您不应该使用Gmail使用谷歌的用户认证 帐户。您可以使用谷歌+登录为Android的替代。这会 让你在获得访问用户的个人资料信息 所需的权限使用OAuth。这里退房指南:
You should not use Gmail for user authentication using Google accounts. You can use Google + Sign-in for Android instead. This will allow you to access the user's profile information upon getting the required permissions using OAuth. Check out the guide here:
这是我遵循,一切工作正常。
which i followed and everything worked fine.
但是,如果一个Gmail帐户没有GOOGLEPLUS配置文件,我的应用程序要求创建一个帐户GOOGLEPLUS。这让我觉得我实现了一个GOOGLEPLUS登录,而不是Gmail的登录。
是我的权利等问题的答案?这意味着没有GOOGLEPLUS配置文件不能有Gmail登录Android中?
如果不是我怎么能有一个谷歌登录我的应用程序?
If not how can I have a Google Login in my application?
有一个类似的问题here,没有回复。
A similar question here, with no replies.
请帮忙。谢谢
推荐答案尝试文章以下链接:nilvec/implementing-smtp-or-imap-xoauth-authentication-in-java.html.
我认为这会帮助你。
更多推荐
使用Gmail的登录凭据
发布评论