Salesforce Redirects to Okta End-User Dashboard After Logout
Last Updated:
Overview
When users log out of Salesforce in a Security Assertion Markup Language (SAML) Single Sign-On (SSO) integration, the browser redirects them to the Okta End-User Dashboard. This occurs because the Okta org URL exists in the Custom Logout URL field within the Salesforce Single Sign-On settings, rather than the Okta Logout URL field controlling the destination. Administrators must update the Custom Logout URL in Salesforce and verify the Service Provider-Initiated (SP-Initiated) Single Logout (SLO) settings in Okta.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Salesforce Integration
- Security Assertion Markup Language (SAML) 2.0
- Single Sign-On (SSO)
- Single Logout (SLO)
Cause
The Custom Logout URL setting within the Salesforce Single Sign-On settings entirely controls the redirect destination after a user logs out of Salesforce. The redirection to the Okta dashboard occurs because the Okta org URL exists in the Custom Logout URL field in Salesforce. The Logout URL field in the Okta Salesforce application settings does not control the post-logout redirect destination. Instead, Okta uses the Logout URL solely for Service Provider-Initiated (SP-Initiated) Single Logout (SLO) to specify the endpoint where Okta sends SAML logout messages.
Solution
How is the Salesforce post-logout redirect destination resolved?
Update the Custom Logout URL in the Salesforce Single Sign-On configuration and configure the proper Logout URL in the Okta application settings.
- Log in to Salesforce as an administrator.
- Navigate to Setup > Identity > Single Sign-On Settings.
- Select the SAML Single Sign-On setting that the Okta integration uses.
- Check the Custom Logout URL field. If the Okta org URL (for example,
https://example.okta.com) exists here, Salesforce redirects users to the Okta dashboard upon logging out. - Update the Custom Logout URL field to the desired post-logout destination URL, or leave it blank to use the default Salesforce logout page (
https://salesforce.com), and then click Save. - In the Okta Admin Console, navigate to Applications > Applications and select the Salesforce application.
- Select the Sign On tab and click Edit.
- Scroll down to the Advanced Sign-on Settings section and review the Logout URL field.
- Remove the Okta org URL from the Logout URL field if the integration does not use SP-Initiated Single Logout (SLO), or enter the valid Salesforce SLO endpoint URL if the integration requires SLO, and then click Save.
