Example usage for org.springframework.security.web.authentication SimpleUrlAuthenticationFailureHandler setUseForward

List of usage examples for org.springframework.security.web.authentication SimpleUrlAuthenticationFailureHandler setUseForward

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication SimpleUrlAuthenticationFailureHandler setUseForward.

Prototype

public void setUseForward(boolean forwardToDestination) 

Source Link

Document

If set to true, performs a forward to the failure destination URL instead of a redirect.

Usage

From source file:architecture.user.spring.config.SecurityConfig.java

protected AuthenticationFailureHandler authenticationFailureHandler() {
    SimpleUrlAuthenticationFailureHandler simpleUrlAuthenticationFailureHandler = new SimpleUrlAuthenticationFailureHandler(
            "/includes/jsp/error.jsp");
    simpleUrlAuthenticationFailureHandler.setUseForward(true);
    return simpleUrlAuthenticationFailureHandler;
}

From source file:com.naveen.demo.config.Saml2SSOConfig.java

@Bean
public SimpleUrlAuthenticationFailureHandler authenticationFailureHandler() {
    SimpleUrlAuthenticationFailureHandler failureHandler = new SimpleUrlAuthenticationFailureHandler();
    failureHandler.setUseForward(true);
    failureHandler.setDefaultFailureUrl("/error");
    return failureHandler;
}

From source file:com.netflix.genie.web.security.saml.SAMLConfig.java

/**
 * Handler deciding where to redirect user after failed login.
 *
 * @return Authentication failure handler
 * @see SimpleUrlAuthenticationFailureHandler
 *//*from   w ww.  j  av a 2 s. c om*/
@Bean
public SimpleUrlAuthenticationFailureHandler authenticationFailureHandler() {
    final SimpleUrlAuthenticationFailureHandler failureHandler = new SimpleUrlAuthenticationFailureHandler();
    failureHandler.setUseForward(true);
    failureHandler.setDefaultFailureUrl("/error");
    return failureHandler;
}

From source file:org.opentestsystem.ap.iat.config.SecurityConfig.java

@Bean
public SimpleUrlAuthenticationFailureHandler authenticationFailureHandler() {
    SimpleUrlAuthenticationFailureHandler failureHandler = new SimpleUrlAuthenticationFailureHandler();
    failureHandler.setUseForward(true);
    failureHandler.setDefaultFailureUrl(LANDING);
    return failureHandler;
}