简体   繁体   English

通过登录重置/撤销 Cognito MFA(电话号码)并更新它

[英]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.

相关问题 通过 AWS Cognito 和 React 进行基于应用程序的授权 - Application Based Authorization through AWS Cognito and React AWS 节点 JS MFA Cognito - AWS Node JS MFA Cognito 如何使用 java 设置通过电话 OTP android 工作室登录的共享首选项 - how to set shared Preference for Login through Phone OTP android studio using java 从 Android 在 Amazon Cognito 中启用用户 mfa - Enable user mfa in Amazon Cognito from Android 是否可以通过 Firebase 身份验证向特定电话号码发送包含一次性令牌的短信? - Is it possible to send a SMS contain one-time-token to specific phone number through Firebase Authentication? 如何允许我的用户使用 mobilen-number 或 email 地址在 Cognito 用户池上重置密码? - How to allow my users to use either mobilen-number or email address to reset their password on Cognito User Pools? AWS Cognito 用户登录时未提供 SMS MFA 验证码 - AWS Cognito user SIGN IN with SMS MFA verification code not delivered 如何在创建 AWS Cognito 用户池时更改 phone_number 格式? - How to change phone_number format upon creation of a AWS Cognito User Pool? 在 Cognito 用户池中注册时如何检查用户是否已存在具有相同 email 或电话号码的用户 - how to check if user already exist with same email or phone number while registration in Cognito user pool 通过 SendGrid 发送来自 Okta 的 MFA email 时 DMARC 失败 - DMARC failing when MFA email from Okta being sent through SendGrid
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM