【发布时间】:2021-02-24 20:39:13
【问题描述】:
我是第一次使用 AWS Cognito Auth。
- 创建了一个用户池(成功)
- 使用 AdminCreateUser API 在池中创建用户(成功)
- 尝试使用 AdminInitiateAuth API 和 AdminRespondToAuthChallenge API 获取访问令牌(成功)
- 尝试使用 ForgotPassword API 重置密码,但根本不起作用。
这是我在 JAVA 中的 ForgotPassword 代码:
ForgotPasswordRequest request = ForgotPasswordRequest.builder()
.clientId(GetUserPoolClientId(companyCode))
.username(userEmail)
.build();
ForgotPasswordResponse response = cognitoClient.forgotPassword(request);
回复给我***@gmail.com,但我没有收到任何电子邮件。
【问题讨论】:
标签: amazon-cognito