title: Java Config Spring Security FORM_LOGIN_FILTER
body: <p>I'm working through some of the Spring Security tutorials and trying to implement them without xml and I can't seem to find a anything about replacing the default <strong>UsernamePasswordAuthenticationFilter</strong>.</p>
  
  <p>Similar to <a href="https://stackoverflow.com/questions/10074308/how-to-pass-an-additional-parameter-with-spring-security-login-page/10077700#10077700">this question</a> I'd like to retrieve an extra parameter from the login form. Where I'm having difficulty is:</p>
  
  <pre><code>&lt;custom-filter ref="customAuthenticationProcessingFilter" position="FORM_LOGIN_FILTER"/&gt;
  </code></pre>
  
  <p>In order to set this up properly do I need to build from the AuthenticationManagerBuilder down? or am I missing something?</p>