Cognito UI does not show error when User Pool is not enabled.

1

We are currently using Cognito for the user management and using its hosted UI to let users' login to our application. As we want only allow certain users from our customers to access the application, we redirect the users to the customer's Identity provider portal based on the email provided by the user to authenticate them via SAML. For example, user with email id sam@google.com would enter his email address in the corporate email input box and he would be redirected to the external Identity provider to be authenticated. The issue here is if the user mistypes the domain name or if the domain entered is not registered with Cognito before the user is redirected to the same Cognito page with error in the url but the error is not shown to the user on the UI itself. As this is a bad experience from user point of view we are trying to understand if this a known issue with Cognito or we could fix with a config change somewhere? If we enable the Cognito User Pool as one of the identity providers then we are able to see the error in the UI but we have no plans to enable User Pool as provider.

AWS
已提问 2 年前615 查看次数
2 回答
2

Use the 'PreventUserExistenceErrors' setting of a user pool app client to enable or disable user existence related errors.

More details in the docs link below https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-managing-errors.html

AWS
已回答 2 年前
  • This is already enabled but it doesnt solve the problem.

0

Hello nikhilaws, has your issue been resolved? . If so, please remember to click on the "Accept" button to let the community know that your question is resolved. This helps everyone. Thank you in advance.

profile picture
支持工程师
已回答 2 年前

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

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

回答问题的准则