title: JIRA: Is there a way to force HTTP Basic Authentication with standalone (tomcat) jira?
body: <p>We have Jira 5.x running in the standalone variant (embedded tomcat). We'd like to prevent any request without a valid http basic header from reaching the Jira application. Or, in other words, force JIRA to use HTTP Basic authentication. Yes, I know that transmitting http basic credentials over the wire without tls isn't secure and stuff, but we don't have an SSL certificate anyway, so that doesn't matter (it doesn't make it worse than it actually is).</p>
  
  <p>I read that Jira handles HTTP Basic Authentication headers if it gets them, and appending <code>?os_authType=basic</code> to the URL makes Jira behave as we wish, but we'd like Jira to enforce HTTP Basic. We wouldn't care if we had some kind of "even-before-jira" login statically configured in tomcat as long as the jira application wouldn't be reachable from outside without it.</p>
  
  <p>Is there a way to achieve this?</p>
  
  <p>I tried adding:</p>
  
  <pre><code>&lt;login-config&gt;
    &lt;auth-method&gt;BASIC&lt;/auth-method&gt;
  &lt;/login-config&gt;
  </code></pre>
  
  <p>to jira's web.xml but that didn't help.</p>