AWS Cognito - RESET_REQUIRED重定向无法正常工作

时间:2018-06-06 20:47:59

标签: amazon-web-services redirect browser amazon-cognito aws-cognito

目前,我使用cognito的默认用户界面来验证我的用户。 当我将它们标记为RESET_REQUIRED时,重定向到forgot_password不起作用。

这是请求和响应标头......

HTTP/1.1 302 Found
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Date: Tue, 05 Jun 2018 21:22:15 GMT
Expires: 0
Location: redirect:/forgotPassword?redirect_uri=https://domain.delist&response_type=code&client_id=4711&errorMessage=Password reset required for user due to security reasons.
Pragma: no-cache
Server: Server
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Content-Length: 0
Connection: keep-alive

任何想法还是我想念一下?

1 个答案:

答案 0 :(得分:0)

我认为您的Location标头不正确-尝试删除“重定向:”,这样

Location: /forgotPassword?redirect_uri=https://domain.delist&response_type=code&client_id=4711&errorMessage=Password reset required for user due to security reasons.