Implement Identifier First profile with Lock.js

Hi. We are using Lock.js for our login page and we would like implement Identifier First similar as auth0 Universal Login. It means:
we have two databases: our-users(users in our connection), planb-users(enterprise users, @planb.com)
what we want:
user enter email and click Login we should redirect to planb-users Idp if user email has enterprise domain(user-mask@planb.com) otherwise show password field

Lock supports home realm discovery based on email domains in the scope of enterprise connections (Select from Multiple Connection Options).

However, it’s done the opposite of what you describe; the password field is shown by default and hidden if the user inputs an email address associated with an enterprise connection.

Having Lock initially show only an email field is not supported to my knowledge, so it would require you to fork the Lock library. The recommendation here would be to consider moving to the new universal login experience and enable identifier first.

As an additional note, the above is applicable for enterprise connections and at one point you mention you have two databases. If you mean they are both database connections this would not be applicable, but if they are both database connections there would not actually be an IdP to redirect to so a bit unsure about the exact use case you have.

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