Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Configures the social authentication filter which integrates Spring Social with Spring Security -->
- <beans:bean id="socialAuthenticationFilter" class="org.springframework.social.security.SocialAuthenticationFilter">
- <beans:constructor-arg index="0" ref="authenticationManager" />
- <beans:constructor-arg index="1" ref="userIdSource" />
- <beans:constructor-arg index="2" ref="usersConnectionRepository" />
- <beans:constructor-arg index="3" ref="connectionFactoryLocator" />
- <!-- Sets the url of the registration - use in case the sign in has failed -->
- <beans:property name="signupUrl" value="/user/register/" />
- <!-- Sets the url of the dashboard - use in case the sign in has succeed -->
- <beans:property name="authenticationSuccessHandler">
- <beans:bean class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
- <beans:property name="defaultTargetUrl" value="/dashboard" />
- </beans:bean>
- </beans:property>
- </beans:bean>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement