We and some of our customers use Atlassian’s Crowd as a SSO solution.  I was surprised to find that Atlassian does not provide code to enable Apache to use cookie-based authentication.  Their only Apache solution is based around HTTP Basic Authentication.  I found an open JIRA issue about this and from there found some code examples laying around.  None of them were an all-in-one solution, so I combined the various bits into a single solution.  Hopefully Atlassian will provide an official solution in the near future, or at least patch their official Perl libraries to include the calls utilized by the code that does implement a solution.