Configuring a SAML Connection Using Okta as the IdP and Auth0 as the SP
Last Updated:
Overview
Configuring a Security Assertion Markup Language (SAML) connection with Okta as the Identity Provider (IdP) and Auth0 as the Service Provider (SP) requires a two-phase setup: creating a SAML app integration in Okta and creating a matching enterprise connection in Auth0. The process exchanges key data — including the IdP Single Sign-On URL and X.509 certificate from Okta — and concludes with a connection test in the Auth0 dashboard. Completing both phases resolves the configuration and establishes the SAML connection.
Applies To
- Auth0
- SAML connection
- Okta as Identity Provider (IdP)
- Auth0 as Service Provider (SP)
Solution
Configuring Okta as the Identity Provider
Complete the following steps to create a SAML 2.0 app integration in Okta and collect the IdP Single Sign-On URL and X.509 certificate required for the Auth0 configuration.
-
Sign in to the Okta Developer Console.
-
Go to Application > Application > Create App Integration and select SAML 2.0.
-
In the Single sign on URL field, enter the Auth0 tenant's login callback URL:
https://<DOMAIN_NAME>/login/callback?connection=<CONNECTION_NAME>.NOTE: The connection name must match the name that will be assigned when configuring the SAML enterprise connection in Auth0.
NOTE: If a custom domain is configured within the tenant, use the custom domain in place of
<DOMAIN_NAME>, not the Auth0 default domain. -
In the Audience URI (SP Entity ID) field, enter the URI in the format
urn:auth0:<NAME_TENANT>:<CONNECTION_NAME>. -
Click Next and then click Finish.
-
Navigate to the Sign On tab for the new application.
-
Click View SAML Setup Instructions.
-
Copy the Identity Provider Single Sign-On URL and download the X.509 Certificate from this page. These are required for the Auth0 configuration. The URL format is
https://<OKTA_TENANT_DOMAIN>.okta.com/app/../../sso/saml. -
Navigate to the Assignments tab.
-
Click Assign and select Assign to People from the dropdown menu.
-
Click the Assign button next to the user or users to assign to the application.
How Is the Auth0 Enterprise Connection Created and Tested?
Complete the following steps to create the SAML enterprise connection in Auth0 using the IdP Single Sign-On URL and X.509 certificate collected from Okta, then test the connection.
- Sign in to the Auth0 Dashboard.
- Go to Authentication > Enterprise.
- Click Create Connection.
- Enter the same connection name used in the Okta application configuration.
- In the Sign-in URL field, enter the Identity Provider Single Sign-On URL copied from the Okta setup instructions.
- Upload the X.509 Certificate downloaded from Okta.
- Click Create at the bottom of the screen.
- Select the Applications tab and enable the toggle for the application to associate it with the new connection.
- To test the connection, go to Dashboard > Authentication > Enterprise > SAML, select the three dots next to the connection name, and click Try.