Different Universal Login Configurations for Different Applications

Not sure if I am missing something from the Application settings or the Universal Login settings.

Basically, I have multiple applications which I use for specific set of users.

Buyers
Customers
Admin

I want the Buyers to have a login where the Signup button / tab is disabled on the login screen.
I want the Customers to have a login where the Signup button/tab is enabled on the login screen.
I want the Admin to only have a Sign In button enabled.

Going to the Universal Login, if I set the configuration:

allowSignUp: true

then this setting is reflected for all different applications I have.

Is there a way to specifically provide each application with a way to have the Sign Up area enabled / disabled?

Thank you.

Hi @tasktix,

Welcome back!

You should be able to accomplish this by customizing the Classic Universal Login page with a little bit of logic.

Check the config.clientID and set allowSignup based on which application is making the request.

Something like this, for example:

var signup = true; 

if { config.clientID === "{Buyers_Client_ID}" || config.clientID === "{Admin_Client_ID}"  }(
  signup = false;)
}
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  [...] // all other Lock options
  allowSignup: signup,
}

I haven’t tested it, so let me know if it works for you.

Hope that helps,
Dan

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