Blocked User Custom Message Not Displaying in Universal Login

Custom “user-blocked” error messages configured via Prompt Custom Text are not displaying in Universal Login when users with blocked = true attempt to log in. Instead, users are redirected to the application with error parameters in the URL.

Expected Behavior

When a manually blocked user (blocked = true) attempts to log in, they should see the custom “user-blocked” message directly in the Universal Login interface, similar to how “wrong-credentials” messages are displayed.

Actual Behavior

  1. User enters credentials on /u/login/identifier

  2. User proceeds to /u/login/password

  3. Auth0 immediately redirects to /?error=unauthorized&error_description=user is blocked&state=...

  4. Application redirects back to Auth0

  5. No custom error message is ever displayed in the login interface

Please clarify:

  1. Should blocked users see custom “user-blocked” messages in Universal Login?

  2. If yes, what configuration is missing to make this work?

  3. If no, what is the recommended approach for displaying custom messages to blocked users?

Thank you !

Hi @EBA

This behaviour would be expected, in the context of a blocked user they are not kept within the Universal Login page and they are redirected with the custom parameters you have mentioned in your post.
You would need to handle this error in your application whenever the error=unauthorized and error_description=user is blocked parameters are present in order to redirect them to a custom page or display a message to them.

Otherwise, you can go ahead and submit a product feedback regarding having this behaviour handled within the Universal Login context.

If you have any other questions, let me know!

Kind Regards,
Nik

1 Like

Thank you, got it ! It would be nice to have this behaviour handled within the Universal Login

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.