After a recent upgrade of a Spring Boot application that relies on CAS for authentication, the project no longer compiles due to the fact that the setCasServerUrlPrefix method can't be found on SingleSignOutFilter:
java: cannot find symbol
symbol: method setCasServerUrlPrefix(java.lang.String)
location: variable singleSignOutFilter of type org.jasig.cas.client.session.SingleSignOutFilter
The involved code is:
@Bean
public SingleSignOutFilter singleSignOutFilter() {
SingleSignOutFilter singleSignOutFilter = new SingleSignOutFilter();
singleSignOutFilter.setCasServerUrlPrefix("...");
singleSignOutFilter.setIgnoreInitConfiguration(true);
return singleSignOutFilter;
}
How to update the code to still set this value even though the setter doesn't exist anymore?