Auth0 Home Blog Docs

Handling Login Failure in Auth0


#1

Is there a way to custom handle the login failure scenarios in Auth0?

If the login fails, then there could be three test cases.

  1. The user id doesn’t exist in the identity provider (lets say, AD with LDAP connection), which will need the application to redirect the user to “User Registration” page (This is probably not doable since Auth0 will be in control till the authentication is complete. Adding the link to register the user in the Auth0 login page should solve the purpose here, but want to know if there is an alternate way to redirect directly if Auth0 knows the user doesn’t exist).
  2. The user id is valid, but user mistyped the password, in which case the application should keep the user in the current screen, so that user can try re-logging with the correct password (this is the default behavior of auth0 and no code changes is needed here).
  3. How to lock the account after “N” mistyped passwords?

#2

I also need this feature.