Hello,
I’m trying to embed lock on an ASP.NET Web Forms page, and I’m trying to specify the connection that the users would log into from that page. Right now, Lock is defaulting to random connection which the user isn’t associated with.
Is there a way to specify the connection in Lock?
Here is my current code:
<script src="https://cdn.auth0.com/js/lock/10.14/lock.min.js"></script>
<script type="text/javascript">
var lock = new Auth0Lock('@ConfigurationManager.AppSettings"auth0:ClientId"]', '@ConfigurationManager.AppSettings"auth0:Domain"]', {
auth: {
redirectUrl: 'http://localhost:4987/LoginCallback.ashx'
, responseType: 'code'
, params: {
scope: 'openid profile',
allowedConnections: 'CorrectConnection'],
}
},
});
function signin() {
lock.show();
}
</script>