# How to Achieve Seamless SSO with OIDC Enterprise Connection?

**URL:** <https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268>\
**Category:** Get Help\
**Tags:** oidc-enterprise-connection, connections\
**Created:** [February 17, 2025, 1:16am UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268 "2025-02-17T01:16:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuriscom](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yuriscom/32/72975_2.png) [@yuriscom](https://community.auth0.com/u/yuriscom)\
**Post date:** [February 17, 2025, 1:16am UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/1 "2025-02-17T01:16:33Z")

</div>

Hi Community!

I followed the Auth0 documentation for setting up an OIDC Enterprise Connection.

My goal is to achieve completely seamless SSO when a user logs into App1 (via IDP1) and then navigates to App2 (via IDP2, which is federated with IDP1).

What I Did:

1. Configured the OIDC Enterprise Connection in IDP2, pointing to IDP1.
2. Enabled the connection in App2 (IDP2).
3. Ensured that all login URLs, callback URLs, and authentication settings align with the documentation.

To make it work, I had to go under Login Experience in the connection settings and either:  
Check “Display connection as a button” → Users must click the button to trigger SSO.  
Use “Identity Provider Domains” → Users must enter their email first, then it triggers SSO.

Both methods technically work, but they are not seamless, as they require user’s interaction.

Question:  
How can I make the login process completely seamless, without requiring the user to either click a button or enter their email?

Is there a way to force the OIDC connection to automatically redirect?  
Maybe I’m missing any specific settings that can achieve this? e.g.: Organizations?  
Any guidance would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![yuriscom](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yuriscom/32/72975_2.png) [@yuriscom](https://community.auth0.com/u/yuriscom)\
**Post date:** [February 17, 2025, 4:29pm UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/2 "2025-02-17T16:29:19Z")

</div>

I ended up updating the universal login code with a javascript to detect the button and auto click it. It’s a silly workaround, but it works.  
Would still appreciate it if anyone could suggest a proper solution

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [February 17, 2025, 6:33pm UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/4 "2025-02-17T18:33:27Z")

</div>

Hi @yuriscom

Seamless SSO should be enabled by default on your tenant, the option to toggle it on/off is available for legacy tenants as mentioned in our [documentation](https://auth0.com/docs/get-started/tenant-settings/enable-sso-for-legacy-tenants), meaning that your applications should have Seamless SSO between them if **BOTH** applications have the same database connection enabled. Otherwise, you may want to look into [Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication?_gl=1*f0c8r5*_gcl_au*MTQ0Mjc1NzMyLjE3MzM4NDI0MjM.*_ga*MTUzMjkzMjI3NS4xNzMzODM0NTky*_ga_QKMSDV5369*MTczOTgwNzk3OC4xNDIuMS4xNzM5ODEzNTg3LjU0LjAuMA) if you want your applications to use different connections.  
I would advise you to review this [Knowledge Article](https://community.auth0.com/t/how-to-achieve-single-sign-on-sso-between-applications/125553) regarding Seamless SSO.

If you have any other questions, feel free to let me know!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![yuriscom](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yuriscom/32/72975_2.png) [@yuriscom](https://community.auth0.com/u/yuriscom)\
**Post date:** [February 19, 2025, 12:22am UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/5 "2025-02-19T00:22:15Z")

</div>

Hi Nik,  
Thank you for your answer.

I think, however, that the button i’m talking about is showing before we reach the OIDC flow itself.

When the OIDC flow starts, it is using the silent authentication, totally getting what I need.

What I’m referring to is the connection button.

From the screenshots below you can see that it’s the step before we start the OIDC process just to give an option to the user to choose between possible options to login. If he choses to continue with the enterprise connection, then it will do the silent OIDC.

And I’m wondering if there’s a way to omit this screen directly continuing to the enterprise connection without user’s interaction. Right now I had to add a JS code in the universal login to auto-click it. But of course, it’s a workaround.

 ![Screenshot 2025-02-18 at 7.16.21 PM](https://global.discourse-cdn.com/auth0/original/3X/4/a/4a9e58f4d8a925217dfa07d14a4a997ad3371c07.png)

 ![Screenshot 2025-02-18 at 7.16.48 PM](https://global.discourse-cdn.com/auth0/original/3X/d/b/dbffa37e085b4872db7ec7f94afd4d3bea9091b1.png)

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [February 19, 2025, 4:58pm UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/6 "2025-02-19T16:58:31Z")

</div>

Hi again @yuriscom

Thanks you for explaining the situation!

Instead of having your JS code to click the button automatically as soon as the user reaches the login screen, have you attempted to redirect the user to a specific `/authorize` call where you pass in the `connection` optional parameter specifying your OIDC connection?

You can read more about that in our documentation for [Add Login Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/add-login-auth-code-flow).

That should accomplish the same purpose as your code automatically clicking the button for the user and you should be able to hide the button completely since you will automatically redirect the user to the connection.

Let me know if that helps you solve the issue for your use case!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![yuriscom](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yuriscom/32/72975_2.png) [@yuriscom](https://community.auth0.com/u/yuriscom)\
**Post date:** [February 21, 2025, 1:09am UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/7 "2025-02-21T01:09:25Z")

</div>

Thank you,  
will check this as soon as i get a chance.  
I’m resolving the issue in the meantime.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 7, 2025, 1:09am UTC](https://community.auth0.com/t/how-to-achieve-seamless-sso-with-oidc-enterprise-connection/182268/8 "2025-03-07T01:09:26Z")

</div>

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