簡體   English   中英

AWS Cognito-RESET_REQUIRED重定向不起作用

[英]AWS Cognito - RESET_REQUIRED redirect not working

目前,我正在使用cognito的默認UI對用戶進行身份驗證。 當我將它們標記為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

任何想法或我想念的東西嗎?

我認為您的Location標頭不正確-請嘗試刪除“重定向:”

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM