# Auth0/Okta integration multiple connections alternative

**URL:** <https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285>\
**Category:** Get Help\
**Tags:** okta, saml\
**Created:** [October 3, 2018, 5:21pm UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285 "2018-10-03T17:21:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sauronnikko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sauronnikko/32/9112_2.png) [@sauronnikko](https://community.auth0.com/u/sauronnikko)\
**Post date:** [October 3, 2018, 5:21pm UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285/1 "2018-10-03T17:21:35Z")

</div>

I’ve followed this tutorial: [https://auth0.com/docs/protocols/saml/identity-providers/okta](https://auth0.com/docs/protocols/saml/identity-providers/okta) in order to set up an **Auth0** as SP/Okta as IdP integration with SAML as the protocol.

I had to create a new application in Okta and use the **Sigle Sign On Url** provided by Auth0 **(https://YOUR\_AUTH0\_DOMAIN/login/callback)** and also the **Audience URI** **(urn:auth0:YOUR\_TENANT:YOUR\_CONNECTION\_NAME)**. Since I didn’t have these values at the moment, I just put placeholders until I got them.

When creating a new connection in Auth0, I needed to provide the **X509 certificate** and the **Sign In URL** I obtained from Okta. After the Auth0 connection configuration was finished; I went back to Okta and replaced the placeholders with the proper values.

I created a Auth0 application and enabled the connection for it. I also enabled the SAML2 WebApp add-on for the application.

The integration works fine. My issue is the following: both the **Sign In URL** and the **X509 certificate** from Okta changes per application instance. In other words, there may be only one application in Okta, but when a customer adds it, a new **Sign In Url** is generated for that specific customer/application combination. That means I’d need to add a new connection in Auth0 for each customer, since the **Sign In URL** is different for each one.

However, the Okta application needs the connection’s name in order for it to work. It needs it for the **Audience URI** **(urn:auth0:YOUR\_TENANT:YOUR\_CONNECTION\_NAME)** and even for the SSO Url when support for IdP Initiated SSO is wanted (by appending a `?connection=CONNECTION_NAME` to it).

So I don’t see how this works out unless I ask each customer to add their own custom app in Okta. Is there an alternative to this?

---

<div class="post-metadata">

**Author:** ![Oktaviandi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oktaviandi/32/9139_2.png) [@Oktaviandi](https://community.auth0.com/u/Oktaviandi)\
**Post date:** [October 4, 2018, 4:28am UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285/2 "2018-10-04T04:28:50Z")

</div>

I’m also exploring Okta and Auth0 integration. Should we use this instead? [Configure Okta as OAuth2 Identity Provider](https://auth0.com/docs/protocols/oidc/identity-providers/okta)

---

<div class="post-metadata">

**Author:** ![sauronnikko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sauronnikko/32/9112_2.png) [@sauronnikko](https://community.auth0.com/u/sauronnikko)\
**Post date:** [October 4, 2018, 5:40am UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285/3 "2018-10-04T05:40:38Z")

</div>

Unfortunately, it’s required that my project uses the SAML Protocol so OpenID Connect won’t do it for me

---

<div class="post-metadata">

**Author:** ![Oktaviandi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oktaviandi/32/9139_2.png) [@Oktaviandi](https://community.auth0.com/u/Oktaviandi)\
**Post date:** [October 4, 2018, 10:51am UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285/4 "2018-10-04T10:51:57Z")

</div>

I’m trying the docs for SAML. For this **(urn:auth0:YOUR\_TENANT:YOUR\_CONNECTION\_NAME)**, what is the YOUR\_CONNECTION\_NAME that you use? Is that our existing database connection in Auth0? Or the SAML connection that create to integrate with Okta?

---

<div class="post-metadata">

**Author:** ![sauronnikko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sauronnikko/32/9112_2.png) [@sauronnikko](https://community.auth0.com/u/sauronnikko)\
**Post date:** [October 4, 2018, 2:34pm UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285/5 "2018-10-04T14:34:05Z")

</div>

I’m using the SAML connection’s name

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 26, 2019, 12:58pm UTC](https://community.auth0.com/t/auth0-okta-integration-multiple-connections-alternative/16285/6 "2019-07-26T12:58:44Z")

</div>


