如何更改用户状态FORCE_CHANGE_PASSWORD? [英] How to change User Status FORCE_CHANGE_PASSWORD?

查看:238
本文介绍了如何更改用户状态FORCE_CHANGE_PASSWORD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用AWS Cognito创建虚拟用户以进行测试。

Using AWS Cognito, I want to create dummy users for testing purposes.

然后我使用 AWS Console 创建此类用户,但用户的状态设置为 FORCE_CHANGE_PASSWORD

I then use the AWS Console to create such user, but the user has its status set to FORCE_CHANGE_PASSWORD. With that value, this user cannot be authenticated.

是否可以更改此状态?

更新
从CLI创建用户时,行为相同

UPDATE Same behavior when creating user from CLI

推荐答案

对不起,您遇到了麻烦。我们没有一步一步的过程,您只能创建用户并直接对其进行身份验证。我们将来可能会更改此设置,例如允许管理员设置用户直接可用的密码。目前,当您使用 AdminCreateUser 创建用户或通过使用该应用程序注册用户时,需要执行额外的步骤,要么强制用户在登录时更改密码,要么让用户验证电子邮件或电话号码,将用户的状态更改为 CONFIRMED

Sorry you are having difficulties. We do not have a one step process where you can just create users and authenticate them directly. We might change this in the future such as to allow administrators to set passwords that are directly usable by users. For now, when you create users either using AdminCreateUser or by signing up users with the app, extra steps are required, either forcing users to change the password upon login or having users verify the email or phone number to change the status of the user to CONFIRMED.

这篇关于如何更改用户状态FORCE_CHANGE_PASSWORD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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