Example usage for org.springframework.security.web.authentication.logout LogoutFilter setFilterProcessesUrl

List of usage examples for org.springframework.security.web.authentication.logout LogoutFilter setFilterProcessesUrl

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.logout LogoutFilter setFilterProcessesUrl.

Prototype

public void setFilterProcessesUrl(String filterProcessesUrl) 

Source Link

Usage

From source file:org.lightadmin.core.config.context.LightAdminSecurityConfiguration.java

@Bean
public Filter logoutFilter() {
    SecurityContextLogoutHandler logoutHandler = new SecurityContextLogoutHandler();
    logoutHandler.setInvalidateHttpSession(false);
    LogoutFilter logoutFilter = new LogoutFilter(applicationUrl("/"), logoutHandler);
    logoutFilter.setFilterProcessesUrl(applicationUrl("/logout"));
    return logoutFilter;
}

From source file:org.ambraproject.wombat.config.SpringSecurityConfiguration.java

private LogoutFilter requestLogoutFilter() {
    // This filter redirects to the CAS Server to signal Single Logout should be performed
    SecurityContextLogoutHandler logoutHandler = new SecurityContextLogoutHandler();
    logoutHandler.setClearAuthentication(true);
    logoutHandler.setInvalidateHttpSession(true);
    LogoutFilter logoutFilter = new LogoutFilter(getLogoutSuccessHandler(), logoutHandler);
    logoutFilter.setFilterProcessesUrl(CAS_LOGOUT_URI);
    return logoutFilter;
}