Example usage for org.springframework.security.cas.web CasAuthenticationFilter setFilterProcessesUrl

List of usage examples for org.springframework.security.cas.web CasAuthenticationFilter setFilterProcessesUrl

Introduction

In this page you can find the example usage for org.springframework.security.cas.web CasAuthenticationFilter setFilterProcessesUrl.

Prototype

public void setFilterProcessesUrl(String filterProcessesUrl) 

Source Link

Document

Sets the URL that determines if authentication is required

Usage

From source file:se.kth.csc.config.SecurityConfig.java

@Autowired
@Bean//from w w  w  .jav a  2  s  .c o  m
public CasAuthenticationFilter casAuthenticationFilter(AuthenticationManager authenticationManager) {
    CasAuthenticationFilter casAuthenticationFilter = new CasAuthenticationFilter();

    casAuthenticationFilter.setAuthenticationManager(authenticationManager);
    casAuthenticationFilter.setFilterProcessesUrl("/authenticate");

    log.info("Creating CAS authentication filter with process URL \"/authenticate\"");
    return casAuthenticationFilter;
}

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

private CasAuthenticationFilter casAuthenticationFilter() throws Exception {
    CasAuthenticationFilter casAuthenticationFilter = new CasAuthenticationFilter();
    casAuthenticationFilter.setAuthenticationManager(authenticationManager());
    casAuthenticationFilter.setServiceProperties(serviceProperties());
    casAuthenticationFilter.setAuthenticationDetailsSource(dynamicServiceResolver());
    casAuthenticationFilter.setFilterProcessesUrl(CAS_VALIDATION_URI);
    return casAuthenticationFilter;
}