Troubleshooting SSO with Crowd
Please follow the steps below to troubleshoot problems with SSO (single sign-on) in Crowd:
- Confirm that you can log in to each application with the same username and password.
- In Crowd, click 'Applications' to view the Application Browser.
- Click 'View' next to the application.
- Click the 'Authentication Test' tab and follow these instructions.
Set each application to use centralized SSO authentication, as follows. Ensure that each Atlassian application's
WEB-INF/classes/seraph-config.xml
file is using the Crowd's com.atlassian.crowd authenticator class. For example in JIRA, instead of this:<authenticator class="com.atlassian.jira.security.login.JiraSeraphAuthenticator"/>
you should have this:<authenticator class="com.atlassian.jira.security.login.SSOSeraphAuthenticator"/>
Please, see our Adding an Application Tutorial page to check the SSO authenticator classes for other applications.
- If you are using a reverse proxy in front of any of the applications, you'll need to make sure that the host header is preserved in the forward. For example, in an Apache reverse proxy, you need to enable the "ProxyPreserveHost" option, and in IIS you need to use "Application Request Routing" to achieve the same.
- Once each application is using centralized authentication, confirm you can log in to each application with the same username and password.
- Inside of Crowd, ensure that each application is configured to use the same user directory. SSO will not work if you log in to Confluence through one user directory, but JIRA through a different user directory, even if the usernames are identical.
- Ensure that each application is using the same sub-domain. For example:
- JIRA -> jira.example.com
- Confluence -> confluence.example.com
- Crowd -> crowd.example.com
SSO will only work with applications on the same sub-domain. Why? Crowd uses a cookie to manage SSO and your browser only has access to cookies in the same sub domain, e.g. *.example.com.
This is the value that you set in the Domain property (e.g. .example.com) for Crowd to enable SSO. This is covered in the documentation on configuring the domain.
- Check if the "Require Consistent Client IP Address" is enabled in the Session Configuration. If it is, try disabling it and test SSO.
まだ問題が解決しませんか。
If the above steps have not solved your problem, please gather some debugging information as described below before contacting Atlassian support:
- In Crowd, go to 'Administration' -> 'Logging & Profiling'. Change the
com.atlassian.crowd
package to DEBUG. - Replicate the SSO problem you are having.
- Please raise a support issue on our Support System, attaching your {
CROWD HOME}/logs/atlassian-crowd.log
file with the debug information gathered.