Android登录流程(密码登录)混乱 [英] Android SignIn Flow (Password Login) Confusion

查看:90
本文介绍了Android登录流程(密码登录)混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试GitKit V3 Android快速入门,除密码登录外,其他所有功能都很好.每次我第一次输入随机电子邮件地址时,登录流程都会在创建新帐户"框中提示我.登录后,我可以验证令牌以提取电子邮件等.

I am testing out the GitKit V3 Android quickstart and everything works great except the Password Login. Every time I input some random email address for the first time, the SignIn flow will prompt me with a "Create new account" box. After I sign in, I was able to verify the tokens to extract the emails etc.

但是,当我注销(删除会话令牌)并再次使用同一封电子邮件再次登录时,我希望它可以让我输入密码,但是会再次提示我创建新帐户"框.在这里,如果我尝试输入新的名称和密码,则该框会抱怨该电子邮件已经存在.我不确定为什么会这样,因为查看示例代码只会使我进入startSignIn()方法.

However, when I logout (delete my session token) and login again with the same email, I expect it to let me input my password but instead it prompts me with the "Create new account" box again. Here, if I try to input a new name and password, the box complains that the email already exists. I am not sure why this is the case since looking through the sample code only leads me to the startSignIn() method.

我认为快速入门非常适合我的应用程序,但是我想知道是否应该重写UI管理器并实现自己的登录流程?现在,我正在考虑使用以下事实:该框抱怨该电子邮件存在(在首次首次登录后登录时),提示用户输入密码等.

I think the quickstart works great for my app but I am wondering if I should be overriding the UI manager and implement my own signIn flow? Right now, I am thinking of using the fact that the box complains that the email exists (when you login after your initial first time) to prompt the user to enter passwords etc.

我做错什么了吗?

提前谢谢!

PS-还有一个类似的问题

PS - there's a similar question here but the answer didn't help.

推荐答案

您可以使用Android Studio调试应用程序,并查看logcat中是否有一些线索.另外,您是否尝试过使用Google(或Facebook或其他身份提供商)登录?

You may debug the app using Android Studio, and see whether there are some clues in the logcat. Also, have you tried to sign in using Google (or Facebook or other identity providers)?

无论如何,如果您只想解决密码登录问题,则无需覆盖UIManager.我们正在进行一些相关的工作,您可以与Google Identity Toolkit团队联系 https://groups.google.com/forum/#!forum/google-identity-toolkit 了解详情.

Anyway, there is no need to override the UIManager if you just want to work around the password login issue. There are some relevant efforts ongoing and you may contact the Google Identity Toolkit team https://groups.google.com/forum/#!forum/google-identity-toolkit for details.

这篇关于Android登录流程(密码登录)混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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