title: Jira 5.2 Seraph SSO Login behind reverse proxy
body: <p>Since a few days I'm trying to enable SSO for Jira 5.2 and figured out, that the help page from Jira is outdated. </p>
  
  <p>Each example uses an old version of atlassian-seraph (Jira 5.2 uses 2.6.0). </p>
  
  <p><strong>Goal:</strong> 
  I want to get automatically logged in into Jira if I'm logged in into Webseal (reverse proxy). </p>
  
  <p><strong>Background:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/RLlCq.png" alt="sequence diagram"></p>
  
  <ul>
  <li>Jira is behind a reverse proxy (see picture).</li>
  <li>This proxy authentificatates the user and holds the session.</li>
  <li>If I'm logged in I want to be logged in in Jira, too</li>
  <li>The only information provided is the user name</li>
  </ul>
  
  <p><strong>Question:</strong></p>
  
  <p>How to write a custom login module that reads the username from http_header and authentificates the user? </p>
  
  <p><strong>Links:</strong> </p>
  
  <ul>
  <li><a href="https://confluence.atlassian.com/display/DEV/Single+Sign-on+Integration+with+JIRA+and+Confluence" rel="noreferrer">https://confluence.atlassian.com/display/DEV/Single+Sign-on+Integration+with+JIRA+and+Confluence</a></li>
  <li><a href="http://docs.atlassian.com/atlassian-seraph/latest/sso.html" rel="noreferrer">http://docs.atlassian.com/atlassian-seraph/latest/sso.html</a></li>
  <li><a href="https://answers.atlassian.com/questions/23245/how-to-integrate-jira-with-my-company-s-sso" rel="noreferrer">https://answers.atlassian.com/questions/23245/how-to-integrate-jira-with-my-company-s-sso</a></li>
  </ul>