How can I use cognito to create user accounts, but a different service for verification?

你离开我真会死。 提交于 2020-01-15 05:42:28

问题


I am building an app that will be using Plivo or Twilio for user interaction and input.

I wanted to use AWS Cognito for user management, but for verification, they say a user must verify email or phone number.

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?


回答1:


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/

The idea is that you will explicitly do the calls you want to Twilio/Plivo from the lambda function.

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.



来源:https://stackoverflow.com/questions/44594700/how-can-i-use-cognito-to-create-user-accounts-but-a-different-service-for-verif

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!