title: spring security - access request parameters inside UserDetailsService implementation
body: <p>I'm working on a java spring mvc application. I have implemented the <code>UserDetailsService</code> interface like this:</p>
  
  <pre><code>@Component
  @Transactional
  public class SecurityDAO implements UserDetailsService{
  
       @Override
       public UserDetails loadUserByUsername(final String username) throws UsernameNotFoundException {
           ...
       }
  
       ....
  }
  </code></pre>
  
  <p>I need to find the user login url inside <code>loadUserByUsername</code> method(because the project has multiple login urls). In fact, <strong>I want to access request parameters inside <code>UserDetailsService</code> implementation.</strong></p>