忘记了AWS Cognito的密码链接 [英] Forgot password link from aws cognito

查看:67
本文介绍了忘记了AWS Cognito的密码链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始为我的虚拟ios应用程序探索AWS Cognito,尽管在新用户注册期间我在电子邮件中收到确认链接,然后单击该链接可以正确验证电子邮件.

我们是否具有忘记密码的相同功能,即获取链接而不是代码,并将其重定向到我的虚拟网站,仅用户需要输入新密码即可.

预先感谢.

I started exploring AWS cognito for my dummy ios application, although I am getting a confirmation link in email during new user signup, and clicking on it verifies the email correctly.

Do we have same functionality for forgot password i.e. getting a link instead of codes and redirect it to my dummy website where only thing user needs to do is enter is new password.

Thanks in advance.

推荐答案

我忘了几个月前问的这个问题,想到用答案进行更新.因此,根据AWS文档:
"调用此API会导致一条消息发送给最终用户,并带有确认码,该确认码是更改用户密码所必需的.对于Username参数,您可以使用用户名或用户别名.如果该用户存在经过验证的电话号码,则确认代码将发送到该电话号码;否则,如果存在经过验证的电子邮件,则确认代码将发送到该电子邮件.经验证的电子邮件存在,将引发InvalidParameterException."
此处是指向AWS文档的链接.
因此,可能有一些解决方法可以实现它,但是AWS Cognito目前不支持发送忘记密码的自我验证链接.

I forgot about this question which I asked few months back, thought of updating it with the answer. So, according to the AWS documentation:
"Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user's password. For the Username parameter, you can use the username or user alias. If a verified phone number exists for the user, the confirmation code is sent to the phone number. Otherwise, if a verified email exists, the confirmation code is sent to the email. If neither a verified phone number nor a verified email exists, InvalidParameterException is thrown. "
Here is the link to AWS doc.
So there might be some workaround to achieve it, but sending a self verification link for forgot password is not supported by AWS Cognito for now.

这篇关于忘记了AWS Cognito的密码链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆