Redirected to the login screen with no errors when attempting to log in to any Atlassian applications
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
Summary
Symptoms
Users keep getting redirected to the Login screen while attempting to login to any Atlassian applications (Confluence, JIRA, Crowd, etc)
No errors thrown in the application's logs or Crowd's logs, or in the UI. In fact, based on the logs, authentication should be successful
SSO is enabled in the connected apps
Diagnosis
The number 1 cause for this is browser caches. Clear all browser caches and cookies and try again.
If step 1 doesn't resolve the issue, try to disable SSO in the external applications and see if they are able to login
Try to reset the SSO domain via: Resetting the Domain Cookie Value , and make sure that your applications sit in their individual context paths, with the following domain examples:
http://domain.example.com/crowd
Then try to login again via the applications' new URLs
If step 2 resolves the issue, but steps 1 and 3 doesn't, proceed with the Resolution
Cause
Inconsistencies between crowd.properties in each applications' WEB-INF/classes
vs the crowd.properties in the Crowd Home Directory.
Solution
Resolution
Compare the crowd.properties in each applications'
WEB-INF/classes
vs the crowd.properties in the Crowd Home DirectoryExample:
Confluence (
confluence/WEB-INF/classes
) :1 2 3 4 5 6 7 8 9 10 11
application.name c42 application.password admin application.login.url http://localhost:8240/crowd/console/ crowd.server.url http://localhost:8240/crowd/services/ crowd.base.url http://localhost:8240/crowd/ session.isauthenticated session.isauthenticated session.tokenkey session.tokenkey session.validationinterval 2 session.lastvalidation session.lastvalidation
Crowd Home Directory:
1 2 3 4 5 6 7 8 9
session.lastvalidation=session.lastvalidation application.password=S1ec9spk session.isauthenticated=session.isauthenticated application.name=crowd crowd.server.url=http\://127.0.0.1\:8240/crowd/services/ session.validationinterval=1 session.tokenkey=session.tokenkey application.login.url=http\://localhost\:8240/crowd cookie.tokenkey=studio.crowd.tokenkey
Make sure that the session.tokenkey, session.isauthenticated, session.lastvalidation, and crowd.base.url is identical, and that there are no additional attributes such as cookie.tokenkey that is not present in the applications.
For the example above, notice that there is an extra
cookie.tokenkey=studio.crowd.tokenkey
which is not present in Confluence's crowd.propertiesRemoving the cookie.tokenkey line tend to resolve the issue completely
Restart JIRA and Crowd after making changes
Was this helpful?