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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则