使用Gmail的登录凭据

编程入门 行业动态 更新时间:2024-10-08 22:49:59
本文介绍了使用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.

我问了同样的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的登录凭据

本文发布于:2023-11-09 23:25:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573731.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:凭据   Gmail

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!