如何使用cognito创建用户帐户,但使用其他服务进行验证? [英] How can I use cognito to create user accounts, but a different service for verification?
问题描述
我正在构建一个将使用Plivo或Twilio进行用户交互和输入的应用程序。
I am building an app that will be using Plivo or Twilio for user interaction and input.
我想使用AWS Cognito进行用户管理,但是为了进行验证,他们说用户必须验证电子邮件或电话号码。
I wanted to use AWS Cognito for user management, but for verification, they say a user must verify email or phone number.
我想让用户交互和验证来自同一电话号码,所以有一种方法可以某种方式在Node.js中进行设置,其中文本将Plivo / Twilio号码重新路由到AWS Cognito进行验证?
I wanted to have the user interaction and verification come from the same phone number, so is there a way to set this up in Node.js somehow, where a text to a Plivo/Twilio number reroutes to AWS Cognito for verification?
推荐答案
您可以利用自定义身份验证流来实现这一点。看一下这里的示例文章:
https://aws.amazon.com/blogs/mobile/customizing-your-user-pool-authentication-flow/
You can leverage the custom auth flow to achieve this. Take a look on a example article we have here: https://aws.amazon.com/blogs/mobile/customizing-your-user-pool-authentication-flow/
想法是您将从lambda函数显式地执行您想要对Twilio / Plivo的调用。
The idea is that you will explicitly do the calls you want to Twilio/Plivo from the lambda function.
Cognito UserPools不会与第三方进行即时转换。
并通过SNS和SES服务提供自己的通知机制。
我也会在您的职位上考虑此选项。
Cognito UserPools does not intergrade out of the box with a third party. And offers its own notification mechanism through SNS and SES services. I would consider this option as well in your position.
这篇关于如何使用cognito创建用户帐户,但使用其他服务进行验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!