Java Code Examples for org.springframework.security.cas.ServiceProperties#setService()

The following examples show how to use org.springframework.security.cas.ServiceProperties#setService() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CasSsoContextConfig.java    From onetwo with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnMissingBean(ServiceProperties.class)
public ServiceProperties serviceProperties(){
	ServiceProperties serviceProps = new ServiceProperties();
	serviceProps.setService(bootSecurityConfig.getCas().getService());
	serviceProps.setSendRenew(bootSecurityConfig.getCas().isSendRenew());
	return serviceProps;
}
 
Example 2
Source File: SecurityConfiguration.java    From demo-spring-security-cas with Apache License 2.0 5 votes vote down vote up
@Bean
public ServiceProperties serviceProperties() {
	ServiceProperties sp = new ServiceProperties();
	sp.setService(env.getRequiredProperty(CAS_SERVICE_URL));
	sp.setSendRenew(false);
	return sp;
}
 
Example 3
Source File: SpringWebConfig.java    From we-cmdb with Apache License 2.0 4 votes vote down vote up
private ServiceProperties serviceProperties() {
    ServiceProperties properties = new ServiceProperties();
    properties.setService(getServerUrl() + "/login/cas");
    properties.setSendRenew(false);
    return properties;
}
 
Example 4
Source File: WebSecurityConfig.java    From dubbo-postman with MIT License 4 votes vote down vote up
private ServiceProperties serviceProperties() {
    ServiceProperties properties = new ServiceProperties();
    properties.setService(SERVICE_HOME+"/cas_security_check");
    properties.setSendRenew(false);
    return properties;
}