List of usage examples for org.springframework.security.web.authentication SimpleUrlAuthenticationSuccessHandler SimpleUrlAuthenticationSuccessHandler
public SimpleUrlAuthenticationSuccessHandler(String defaultTargetUrl)
From source file:com.sibvisions.rad.server.security.spring.authentication.SecurityManagerPreparerAuthenticationSuccessHandler.java
/** * Creates a new instance of <code>PrepareSessionAuthenticationSuccessHandler</code>. * As delegate authentication success handler will be an <code>SimpleUrlAuthenticationSuccessHandler</code> * with the default target URL <code>/</code> created. * //from w ww . ja v a 2 s . c o m * @param pLogoutProcessUrl the logout process URL */ public SecurityManagerPreparerAuthenticationSuccessHandler(String pLogoutProcessUrl) { this(new SimpleUrlAuthenticationSuccessHandler("/"), pLogoutProcessUrl); }
From source file:com.sibvisions.rad.server.security.spring.authentication.SecurityManagerPreparerAuthenticationSuccessHandler.java
/** * Creates a new instance of <code>PrepareSessionAuthenticationSuccessHandler</code>. * As delegate authentication success handler will be an <code>SimpleUrlAuthenticationSuccessHandler</code> * with the default target URL <code>pDefaultTargetUrl</code> created. * //from w w w. j a v a 2s .com * @param pDefaultTargetUrl the default target URL * @param pLogoutProcessUrl the logout process URL */ public SecurityManagerPreparerAuthenticationSuccessHandler(String pDefaultTargetUrl, String pLogoutProcessUrl) { this(new SimpleUrlAuthenticationSuccessHandler(pDefaultTargetUrl), pLogoutProcessUrl); }
From source file:at.plechinger.demo.scribesec.facebook.SecurityConfig.java
@Bean @Autowired//from w w w.java 2s . c om public ScribeAuthenticationFilter authFilterBean(AuthenticationManager authManager) { ScribeAuthenticationFilter filter = new ScribeAuthenticationFilter("/oauth-login"); //filter.setConfigMatchParameter("atype"); filter.setAuthenticationManager(authManager); filter.setAuthenticationFailureHandler(new SimpleUrlAuthenticationFailureHandler("/login-error")); filter.setAuthenticationSuccessHandler(new SimpleUrlAuthenticationSuccessHandler("/login-success")); FacebookProviderConfiguration facebookProvider = new FacebookProviderConfiguration(); facebookProvider.setApiKey("12345678"); facebookProvider.setApiSecret("xxxxxxxxxxxxxxxxxxxxxxxx"); List<ProviderConfiguration> config = new ArrayList<>(1); config.add(facebookProvider); filter.setProviderConfigurations(config); return filter; }
From source file:shiver.me.timbers.security.spring.StatelessWebSecurityConfigurerAdapter.java
/** * Developers should override this method when changing the instance of {@link SimpleUrlAuthenticationSuccessHandler}. *//*w w w . j a v a 2 s. c om*/ protected SimpleUrlAuthenticationSuccessHandler simpleUrlAuthenticationSuccessHandler(String defaultTargetUrl) { return new SimpleUrlAuthenticationSuccessHandler(defaultTargetUrl); }