Auth0 Home Blog Docs

allowedConnections with database and enterprise not working

lock
login

#1

I am trying to use database connection and Active Directory Enterprise connection in lock. Database connection working great separately. Active Directory Enterprise connection also working separately.
But when i combine both in the app, only database connection users can login. Enterprise Active Directory users unable to login to the app. What i am doing wrong.

const option = {

auth : {

responseType : “id_token token” ,

params : {

state : window . location . pathname + window . location .search,

scope : "openid email app_metadata"

}

},

autoclose : true ,

closable : false ,

avatar : null ,

languageDictionary : {

title : "Log me in"

},

theme : {

logo : https://xxxxxxx.com/xxxx.png ,

primaryColor : #4285f4 ,

},

socialButtonStyle : ‘small’ ,

allowedConnections : [ ‘xxxxxxx-Enterprise’ , ‘xxxxxxx-Database’ ]

};

const lock = new Auth0Lock( xxxxxxxx , xxxxxxxxx , option);


#2

I’m having this same issue when attempting to use ADFS with Username/PW database connection. Both connections will work with social login, but will not work with each other. In the event that both are selected, only the Database connection is available at login.