Auth0 Home Blog Docs

Enterprise redirect without popup



Using lock, I can “embed” the form/button and it doesn’t show the popup before doing the redirect for SAML. It’s a wasted step to have the popup show-up in an Enterprise flow because you have to authenticate totally on the third party site and then get redirected back – the popup is an extra step. I have a workaround as I mentioned with lock using embed, but I would like to use auth0.js. Is there a way to use auth0.js to achieve a button click that redirects, without a popup/modal step, to the IDP and then comes back.



You can use webAuth.authorize() in Auth0.js to redirect to the idP on button click:


  connection: 'enterprise-connection'