[英]Reset/Revoke Cognito MFA (Phone Number) through and update it through login
I have gone through all the questions, but all are not matching exactly with my scenario.我已经完成了所有问题,但所有问题都不完全符合我的情况。
Scenario: Admin can reset the phone number of any user.场景:管理员可以重置任何用户的电话号码。 After resetting/revoking the phone number, user will get logout (if already login), and then user will go through the login process.重置/撤销电话号码后,用户将注销(如果已经登录),然后用户将 go 通过登录过程。 There, he will add his new number and will get verification code on the new number.在那里,他将添加他的新号码并获得新号码的验证码。 Actually, when admin set the contact number to null, it starts giving MFA error because of the "phone_number_verified" flag and I am unable to update this flag as I am doing with "phone_number" field.实际上,当管理员将联系号码设置为 null 时,由于“phone_number_verified”标志,它开始给出 MFA 错误,我无法更新此标志,因为我正在处理“phone_number”字段。 And if I don't remove the number and try to update the number, amplify sends the code on the previous number.如果我不删除号码并尝试更新号码,amplify 会发送前一个号码的代码。
If I get success in deleting the "phone_number_verified" attribute as I am doing with "phone_number" attribute, I will be able to resolve the issue.如果我像删除“phone_number”属性一样成功删除“phone_number_verified”属性,我将能够解决问题。
I faced a similar scenario while working with Cognito user authentication.在使用Cognito用户身份验证时,我遇到了类似的情况。 It is simply not possible to update the number.根本不可能更新号码。 I have went through different solutions but all led to nothing.我经历了不同的解决方案,但都没有结果。 I also tried to contact AWS support center for the confirmation.我还尝试联系 AWS 支持中心进行确认。 In the start, they were giving points but after further discussions, they confirmed that verified phone numbers cannot be updated.一开始,他们是给分的,但经过进一步讨论,他们确认无法更新已验证的电话号码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.