title: Adding SocialAuthenticationFilter using SpringSocialConfigurer via XML for enabling sign in through social providers
body: <p>I am trying to use spring social 1.1.4 for implementing social provider sign-ins.</p>
  
  <p>In the docs, <a href="http://docs.spring.io/spring-social/docs/current/reference/htmlsingle/#enabling-provider-sign-in-with-code-socialauthenticationfilter-code" rel="nofollow">here</a> we can configure SocialAuthenticationFilter through SpringSocialConfigurer. The example here is for Java Configuration.</p>
  
  <p>However, due to some restriction of using existing framework which is based on XML config, I need to implement the above using XML configuration only.</p>
  
  <p>How can I inject this SpringSocialConfigurer in spring security config xml. I mean, should I use </p>
  
  <pre><code>&lt;sec:custom-filter ...&gt; 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;sec:http ...&gt; 
  </code></pre>
  
  <p>or anything else ?</p>