Problems with Crowd token validation when Confluence is sitting behind an Apache proxy.

We have Confluence sitting behind an Apache proxy running on the same host:

<Location / >

When Confluence attempts to validate a Crowd SSO token, it sets the remote-address validation-factor to "", like this:


Here, the actual remote client is The client connects to Crowd and to Confluence through a front-end proxy; the request arriving at Crowd has these headers:


Where is the address of the Confluence host. The requests received by Apache on the Confluence host look like this:


And when the request gets received by Tomcat, it looks like this:


Is there any way to get this to work? If I understand how things are working (and I may not!), Crowd and Confluence can only do SSO successfully if Confluence is receiving requests directly from clients -- i.e., with no intervening proxies. Is there any way to get Confluence to use the correct remote-address?

3 answers

I have. You'll note that Confluence is able to authenticate to Crowd despite talking through a proxy; the problem here is that Confluence is providing bad information to Crowd, so no amount of trust is going to solve it. If there were something in Confluence analagous to "trusted proxies" so that Confluence would get the remote-address value from the X-Forwarded-For header that would solve our problem.

To elaborated a bit: we have configured trusted proxies in Crowd, and the validation request is being passwd to the Crowd server by Confluence via one of our trusted proxies.

This page has hepled me in the past:

You can find the remote ips using this method.Ignore if you have tried this as well ;)

Did you ever figure out a solution to this issue? We are facing a similar problem to you and have reached a standstill in solving it.

Hi, what list of ips do you have on Crowd's listed of authentication interfaces for the application Confluence? Have you added and the other localhost options?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

642 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you