AWS cognito authenticate user with number

时间:2018-02-03 10:25:30

标签: amazon-web-services amazon-cognito aws-cognito aws-mobilehub

Is it possible to authenticate a user with just their mobile phone like whatsapp does on mobile?

The mobile hub asks for a password, along with phone number.

So should i randomly generate it on the users mobile. Then store it in keychain for future logins?

1 个答案:

答案 0 :(得分:0)

Cognito提供了一个自定义身份验证流,您可以在其中添加自己的自定义质询,以使用lambda函数对用户进行身份验证。基本上,您在lambda中生成一个代码,您发送到手机号码,用户输入代码进行身份验证。

以下AWS演示文稿(到最后)给出了一个示例

https://www.youtube.com/watch?v=8DDIxqIW1sM