I have a problem somewhat similar to This domain has been configured for Single Sign On you can't create an account
My client is configured with two connections: Username-password db, and Azure AD. The first is used for customer login, where as employees login with Azure AD.
Some employees are also customers and would like to sign up as a customer using their corporate email. Unfortunately, they cannot sign up with their corporate email. The error {"code":"signup_on_sso_domain","domain":"xyz.com","error":"This domain xyz.com has been configured for Single Sign On and you can't create an account. Try signing in instead."}
I understand the reason for this error message: The corporate email domain is registered in the Azure AD connection and Auth0 believes this connection should handle all login/signup with this email domain.
What I dont understand is why I cannot override this behavior when I am explicitly specifying connection in the signup-call:
webAuth.redirect.signupAndLogin(
{
connection: databaseConnection, //The id of my username-password connection
email: email,
password: password
}
Any help is much appreciated