Guest User

Untitled

a guest
May 13th, 2014
372
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <!-- Configures the social authentication filter which integrates Spring Social with Spring Security -->
  2.     <beans:bean id="socialAuthenticationFilter" class="org.springframework.social.security.SocialAuthenticationFilter">
  3.         <beans:constructor-arg index="0" ref="authenticationManager" />
  4.         <beans:constructor-arg index="1" ref="userIdSource" />
  5.         <beans:constructor-arg index="2" ref="usersConnectionRepository" />
  6.         <beans:constructor-arg index="3" ref="connectionFactoryLocator" />
  7.         <!-- Sets the url of the registration - use in case the sign in has failed -->
  8.         <beans:property name="signupUrl" value="/user/register/" />
  9.         <!-- Sets the url of the dashboard - use in case the sign in has succeed -->
  10.         <beans:property name="authenticationSuccessHandler">
  11.             <beans:bean class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
  12.                 <beans:property name="defaultTargetUrl" value="/dashboard" />
  13.             </beans:bean>
  14.         </beans:property>
  15.     </beans:bean>
RAW Paste Data