Is there a way to custom handle the login failure scenarios in Auth0?
If the login fails, then there could be three test cases.
- 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).
- 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).
- How to lock the account after “N” mistyped passwords?