Blocked user redirected to a page with "Something went wrong..."

Ready to post? :magnifying_glass_tilted_right: First try searching for your answer.

Hi all,

We are using Universal Login. When a user is blocked and try to login, the page is redirected to the application’s callback url appended with /?error=unauthorized&error_description=user%20is%20blocked&state=state_parameter

In the page it shows

Something went wrong…

I can’t find a way to update the behavior to at least

  1. The message must clearly state that the account is blocked.
  2. The message must include the reason for the block
  3. The message must include instructions on how the user can resolve the issue (e.g., “Please contact your administrator”)

Thank you

Hi @ichan

Welcome to the Auth0 Community!

Unfortunately, this behaviour cannot be customized within the Auth0 Dashboard itself. Instead, this error must be handled within your application when the user is being redirected to the callback page as stated in this similar community post.

Once they are redirected, you should be able to display a custom page or a custom error on your callback page informing the user accordingly. You would need to check for the error (unauthorized) and error description (user is blocked).

If you have any other questions, let me know!

Kind Regards,
Nik

1 Like