Confluence Data Center integrated with OKTA via SAML SSO 2.0 redirects to 'Page Not Found'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
The content on this page relates to platforms which are not supported. Consequently, Atlassian Support cannot guarantee providing any support for it. Please be aware that this material is provided for your information only and using it is done so at your own risk.
Problem
When attempting to login to Confluence, or sometimes even when already logged in for a while, you receive a Page Not Found.
The URL in the browser's address bar looks like this: https://confluence.mycompany.com/okta_acs.jsp
Diagnosis
Environment
OKTA integration is configured in Confluence using OKTA's provided .jar file and config files
This issue is NOT reproducible when using Confluence Data Center's native SAML configuration (a.k.a as SSO for Atlassian Server and Data Center plugin)
- The login authentication works after browsing to another Confluence page.
Cause
There is a file called okta_acs.jsp that manages the integration part between Confluence and Okta. The problem occurs when this file is not located in the appropriate folder.
Resolution
Reach out to Okta support team to confirm where the file should be placed. Usually, the correct location is under the $CONFLUENCE_INSTALL_HOME/confluence
folder (within Confluence Installation Directory)
<confluence-install>/confluence/okta_acs.jsp
As an alternative, you can follow these steps to integrate Confluence with Okta using Atlassian SSO plugin: