Search in sources :

Example 16 with ServiceProperties

use of org.springframework.security.cas.ServiceProperties in project tutorials by eugenp.

the class CasSecuredAppApplication method serviceProperties.

@Bean
public ServiceProperties serviceProperties() {
    ServiceProperties serviceProperties = new ServiceProperties();
    serviceProperties.setService("http://localhost:9000/login/cas");
    serviceProperties.setSendRenew(false);
    return serviceProperties;
}
Also used : ServiceProperties(org.springframework.security.cas.ServiceProperties) Bean(org.springframework.context.annotation.Bean)

Example 17 with ServiceProperties

use of org.springframework.security.cas.ServiceProperties in project wombat by PLOS.

the class SpringSecurityConfiguration method serviceProperties.

private ServiceProperties serviceProperties() {
    ServiceProperties serviceProperties = new ServiceProperties();
    serviceProperties.setService(CAS_VALIDATION_URI);
    serviceProperties.setSendRenew(false);
    serviceProperties.setAuthenticateAllArtifacts(true);
    return serviceProperties;
}
Also used : ServiceProperties(org.springframework.security.cas.ServiceProperties)

Aggregations

ServiceProperties (org.springframework.security.cas.ServiceProperties)17 Test (org.junit.Test)10 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)5 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)4 Bean (org.springframework.context.annotation.Bean)3 SamlServiceProperties (org.springframework.security.cas.SamlServiceProperties)3 Authentication (org.springframework.security.core.Authentication)3 ProxyGrantingTicketStorage (org.jasig.cas.client.proxy.ProxyGrantingTicketStorage)2 AssertionImpl (org.jasig.cas.client.validation.AssertionImpl)2 TicketValidator (org.jasig.cas.client.validation.TicketValidator)2 TestingAuthenticationToken (org.springframework.security.authentication.TestingAuthenticationToken)2 UsernamePasswordAuthenticationToken (org.springframework.security.authentication.UsernamePasswordAuthenticationToken)2 ServiceAuthenticationDetails (org.springframework.security.cas.web.authentication.ServiceAuthenticationDetails)2 FilterChain (javax.servlet.FilterChain)1 AnonymousAuthenticationToken (org.springframework.security.authentication.AnonymousAuthenticationToken)1 AuthenticationManager (org.springframework.security.authentication.AuthenticationManager)1 AuthenticationSuccessHandler (org.springframework.security.web.authentication.AuthenticationSuccessHandler)1 WebAuthenticationDetails (org.springframework.security.web.authentication.WebAuthenticationDetails)1