Updating a Cognito Login Error Message

0

We are using the Hosted UI for a Cognito User Pool and the following issue has been identified:

When users are on the hosted login page (e.g. myuserpool.auth.region.amazoncognito.com/login) and the "client_id" query parameter is modified so that it references an invalid or nonexisting App Client ID, the page redirects to a hosted error page (e.g. myuserpool.auth.region.amazoncognito.com/error) where the URL contains a query parameter "error" whose value is "Client does not exist".

Is there any way to modify the behavior of this redirect such that the "error" query parameter's value contains a more generic message like "An error occured," similar to the error message that is shown in the UI ("An error was encountered with the requested page.")?

Mindy
已提問 4 個月前檢視次數 129 次
1 個回答
0

Hello,

It is not possible to customize error messages currently. but revealing that a client exists or not doesn't have risks in my opinion, these IDs are random strings created by Cognito and considered public information (like a domain name, not a secret).

AWS
已回答 3 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南