kakawait / cas-security-spring-boot-starter

Spring boot starter for Apereo CAS client fully integrated with Spring security
MIT License
152 stars 45 forks source link

Compilation error java-cas-client 3.6.1 #147

Closed le-zell closed 3 years ago

le-zell commented 4 years ago

Hi,

With spring boot 2.3.3, spring-security-5.3.4 and cas-client-core-3.6.1 and cas-security-spring-boot-starter-1.0.x

it does NOT compile on line com.kakawait.spring.boot.security.cas.autoconfigure.CasHttpSecurityConfigurer:179.

spring-boot says :

APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

com.kakawait.spring.boot.security.cas.autoconfigure.CasHttpSecurityConfigurer$CasHttpSecurityConfigurerAdapter.init(CasHttpSecurityConfigurer.java:179)

The following method did not exist:

    org.jasig.cas.client.session.SingleSignOutFilter.setCasServerUrlPrefix(Ljava/lang/String;)V

The method's class, org.jasig.cas.client.session.SingleSignOutFilter, is available from the following locations:

    jar:file:/D:/maven/repository/org/jasig/cas/client/cas-client-core/3.6.1/cas-client-core-3.6.1.jar!/org/jasig/cas/client/session/SingleSignOutFilter.class

The class hierarchy was loaded from the following locations:

    org.jasig.cas.client.session.SingleSignOutFilter: file:/D:/maven/repository/org/jasig/cas/client/cas-client-core/3.6.1/cas-client-core-3.6.1.jar
    org.jasig.cas.client.util.AbstractConfigurationFilter: file:/D:/maven/repository/org/jasig/cas/client/cas-client-core/3.6.1/cas-client-core-3.6.1.jar

because of : https://github.com/apereo/java-cas-client/commit/fdc948b8ec697be0ae04da2f91c66c6526d463b5

I comment the line of this java class in my webapp.

//singleSignOutFilter.setCasServerUrlPrefix(casSecurityProperties.getServer().getBaseUrl().toASCIIString());

kakawait commented 4 years ago

Thank you for reporting. I'll check if I could remove it without breaking older release. Else I'll have to do some reflection stuff