使用Gmail的登录凭据 [英] Login using Gmail credentials

查看:154
本文介绍了使用Gmail的登录凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,我可以使用谷歌凭据得到这样基本的用户信息

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.

我问了同样的<一个href=\"http://stackoverflow.com/questions/15105751/enable-gmail-login-in-my-application\">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?

有一个类似的问题<一href=\"http://stackoverflow.com/questions/11309093/login-in-android-app-with-gmail-credentials\">here,没有回复。

A similar question here, with no replies.

请帮忙。谢谢

推荐答案

尝试文章以下链接:http://nilvec.com/implementing-smtp-or-imap-xoauth-authentication-in-java.html.

我认为这会帮助你。

这篇关于使用Gmail的登录凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆