Configure SAML SLO for Auth0 (SP) and Okta (IDP)
When logging out of an application where Okta is the Security Assertion Markup Language (SAML) Identity Provider (IDP), the IDP session remains active. This article provides steps to configure Single Logout (SLO) when Auth0 is the Service Provider (SP) and Okta is the IDP.
-
Okta
-
Auth0
-
Security Assertion Markup Language (SAML)
-
Single Logout (SLO)
SAML connections in Okta support SLO, but the settings must be configured on the Okta application for SLO to be enabled.
Before beginning, ensure the following prerequisites are met:
-
Download the SAML signing certificate from Auth0.
-
NOTE: This is a different certificate than the regular tenant certificate.
-
-
Obtain the entity ID (e.g.,
urn:auth0:<tenant>:<connection>).
Okta Configuration
-
In the Okta dashboard, go to Applications > Applications.
-
Select the target Okta Application.
-
Select the General tab.
-
Scroll down to SAML Settings and click Edit.
- On the General Settings screen, click Next.
- Scroll down and click Show Advanced Settings.
- In the SLO configuration settings:
-
- Upload the SAML signing certificate from Auth0.
-
-
Select the Allow application to initiate Single Logout checkbox.
-
Enter the Auth0 logout endpoint:
https://<tenant>.auth0.com/logout?client_id=<client_ID>&returnTo=<redirect_URL>.
-
- If a
client_idis not specified, the Allowed Logout URLs must be set at the Auth0 tenant level. - Ensure the
returnToparameter maps to a URL in the Auth0 application’s Allowed Logout URLs.
NOTE:/v2/logoutis not used for this function./logoutis used, as it supports a POST with a SAML response. - Enter the entity ID into the SP Issuer field.
- Scroll down, click Next, and then click Finish.
Get Okta Logout Endpoint
-
Navigate to the Sign-on tab and scroll to SAML Signing Certificates.
-
Click View SAML setup instructions.
-
Copy the Identity Provider Single Logout URL
.NOTE: This URL should match the Okta Single Sign-on URL but end with /slo/saml instead of /sso/saml.
Auth0 Configuration
- In the Auth0 SAML connection settings, select Enable Sign Out.
- Paste the IDP Single Logout URL copied from Okta.
- Test the SLO configuration.