[英]How to implement SMS / 2FA Verification using Authy+Amazon lambda+Firebase?
I have developed an Android App using Firebase as a backend to store data. 我开发了一个使用Firebase作为后端存储数据的Android应用。
During the development of my app, I have been Using Firebase's Email+password Authentication method for the sake of simplicity, in which I enter the Phone Number, Email and Password during Login or Signup and make the phone number as the Unique Identifier for each user. 在开发应用程序期间,为简单起见,我一直在使用Firebase的电子邮件+密码身份验证方法,其中在登录或注册期间输入电话号码,电子邮件和密码,并将电话号码作为每个用户的唯一标识符。
Here is how my database tree looks like: 这是我的数据库树的样子:
Root
+ friends
- users
- 9xx888xxx
hasLoggedIn: false
name:"XXXXXXXXXX"
phoneNumber:"9xx888xxx"
+ timeStampJoinedaddclose
+ 989xxxx898
+ xxxx000000
Note that the Phone Number acts as the UID so it must be validated through SMS verification or something like that. 请注意,电话号码充当UID,因此必须通过SMS验证或类似方式进行验证。
Now as my application has been developed, I want to switch from Firebase's Email+Password Authentication to SMS Verification method.So I googled it and come across this Stack Overflow post . 现在,我的应用程序已经研制成功,我想从火力地堡的电子邮件+密码验证短信验证method.So切换我GOOGLE了它,遇到这种堆栈溢出职位 。
As I am new to development, I dont know how to implement this type of Verification using AUTHY + Amazon Lambda + Firebase. 由于我不熟悉开发,因此我不知道如何使用AUTHY + Amazon Lambda + Firebase来实现这种类型的验证。 I have seen the tutorial on Twilio's website about Authy, but it can't help me.
我已经在Twilio的网站上看到了有关Authy的教程,但是它无济于事。
Can someone please guide me or help me in right direction? 有人可以指导我或在正确的方向帮助我吗? Thanks in advance.
提前致谢。
As of yesterday, May 17 2017, Firebase supports this natively! 截至2017年5月17日昨天,Firebase本身就支持此功能! :)
:)
I believe they're writing the docs for Android as I write this . 我相信在撰写本文时,他们正在为Android编写文档 。 However, here's the docs for this new Firebase feature on iOS and Web .
但是,这是iOS和Web上此新Firebase功能的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.