gpt4 book ai didi

android - 使用 Gmail 凭据登录

转载 作者:太空狗 更新时间:2023-10-29 16:42:37 24 4
gpt4 key购买 nike

有没有一种方法可以使用 Google 凭据获取基本用户信息,例如

Email, Name, Gender

并在我的应用程序中使用它们?就像允许用户使用 Gmail 登录我的应用程序一样。

我问了同样的here .

但答案是:

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:

我照做了,一切正常。

但是如果 Gmail 帐户没有 GooglePlus 配置文件,我的应用程序会要求创建一个 GooglePlus 帐户。这让我觉得我实现了 GooglePlus 登录而不是 Gmail 登录。

我的另一个问题的答案对吗?这意味着如果没有 GooglePlus 配置文件,您就无法在 Android 中登录 Gmail?

如果不是,我如何在我的应用程序中使用 Google 登录?

类似的问题here , 没有回复。

请帮忙。谢谢你

最佳答案

尝试此网址上的文章:http://nilvec.com/implementing-smtp-or-imap-xoauth-authentication-in-java.html .

我想这对你有帮助

关于android - 使用 Gmail 凭据登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15271370/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com