简体   繁体   English

如何使用Authy + Amazon lambda + Firebase实施SMS / 2FA验证?

[英]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 . 但是,这是iOSWeb上此新Firebase功能的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何实现短信验证设计 - how to implement sms verification design 使用GoogleApiClient实现短信自动验证Android - Using GoogleApiClient to implement Automatic SMS Verification Android 使用短信验证的 Firebase 身份验证无法正常工作 - Firebase Authentication using Sms verification is not working properly 使用解析服务器云代码进行身份验证 - Authy verification using parse server cloud code 使用 Firebase Auth 进行身份验证时请求短信验证码失败 - SMS verification code request failed when authenticating using Firebase Auth Firebase的SMS验证码 - SMS Verification Code from Firebase 短信验证Android Firebase的限制? - Limitations on sms verification android firebase? 如何在 Firebase Phone Authentication Android 中重新发送 SMS 验证? - How to resend SMS verification in Firebase Phone Authentication Android? 如何在 google playstore 控制台中为我的应用程序提交 2FA 凭据 - How to submit 2FA credentials for my app in google playstore console “使用 SMS Retriever API 进行自动 SMS 验证”与“使用电话号码通过 Firebase 进行身份验证” - "Automatic SMS Verification with the SMS Retriever API" vs "Authenticate with Firebase using a Phone Number"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM