Java Code Examples for org.springframework.social.security.SocialAuthenticationFilter#setAuthenticationSuccessHandler()

The following examples show how to use org.springframework.social.security.SocialAuthenticationFilter#setAuthenticationSuccessHandler() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PreSpringSocialConfigurer.java    From pre with GNU General Public License v3.0 5 votes vote down vote up
@Override
protected <T> T postProcess(T object) {
	SocialAuthenticationFilter filter = (SocialAuthenticationFilter) super.postProcess(object);
	filter.setFilterProcessesUrl(filterProcessesUrl);
	filter.setSignupUrl("/socialSignUp");
	filter.setAuthenticationSuccessHandler(preAuthenticationSuccessHandler);
	return (T) filter;
}
 
Example 2
Source File: FebsSpringSocialConfigurer.java    From FEBS-Security with Apache License 2.0 5 votes vote down vote up
@Override
@SuppressWarnings("unchecked")
protected <T> T postProcess(T object) {
    SocialAuthenticationFilter socialAuthenticationFilter = (SocialAuthenticationFilter)super.postProcess(object);
    socialAuthenticationFilter.setFilterProcessesUrl(filterProcessesUrl);
    socialAuthenticationFilter.setSignupUrl(febsSecurityProperties.getSocial().getSocialRedirectUrl());
    socialAuthenticationFilter.setAuthenticationSuccessHandler(febsAuthenticationSucessHandler);
    return (T) socialAuthenticationFilter;
}
 
Example 3
Source File: AppSocialAuthenticationFilterPostProcessor.java    From paascloud-master with Apache License 2.0 4 votes vote down vote up
@Override
public void process(final SocialAuthenticationFilter socialAuthenticationFilter) {
	socialAuthenticationFilter.setAuthenticationSuccessHandler(pcAuthenticationSuccessHandler);
}