title: How to configure spring security with custom JAAS stack?
body: <p>I have followed <a href="http://static.springsource.org/spring-security/site/tutorial.html" rel="nofollow">this tutorial</a> in order to add basic spring security to my spring mvcbasedweb app.</p>
  
  <p>Before adding the spring security layer my app was protected using acustom SSO login module configured in my web.xml:</p>
  
  <pre><code> &lt;login-config&gt;
          &lt;auth-method&gt;MyLoginModule&lt;/auth-method&gt;
      &lt;/login-config&gt;
  </code></pre>
  
  <p>This login module takescare of redirecting to the login form, performing login etc. and isworking asexpected. 
  After adding the basic spring security layer the app is redirecting to my custom login page and when I authenticate pass me through yet another authentication using spring's standard "Login with Username and Password" form.</p>
  
  <p>My question is how to configure spring to only use my login-config above to perform the authentication and remove it's redundant own "built in" form?</p>