Re: [cas-user] how do i enable jdbc feature in CAS 6.6.12?

2024-01-30 Thread Yan Zhou
HI All, i figured out my problem! that is interesting. this is my customized configuration public Collection jdbcAuthenticationHandlers() { jdbc.getEncode().forEach(b -> handlers .add(queryAndEncodeDatabaseAuthenticationHandler(b))); .. this is my cas.properties:

Re: [cas-user] how do i enable jdbc feature in CAS 6.6.12?

2024-01-29 Thread Mohamed Amdouni
Hello, For debugging, I just download the whole cas repository. (The corresponding tag version) then I import this project to IntelliJ and connect to the overlay remote jvm. It doesn’t matter if the project compile or not if you would like to just debug. Le lun. 29 janv. 2024 à 17:45, Ray Bon

Re: [cas-user] how do i enable jdbc feature in CAS 6.6.12?

2024-01-29 Thread Ray Bon
Yan, I have found that intellij will report errors/missing references but code compiles just fine. The build process with cas-overlay places files (compiled coded and resources) from src onto the prebuilt cas.war. I have not tried to replace jar files, so I am not sure how you would get those

Re: [cas-user] how do i enable jdbc feature in CAS 6.6.12?

2024-01-29 Thread Yan Zhou
Hello, thank you both! But, neither helped. I have been on CAS for quite some time, making customization, but it is always Maven/Eclipse that I am working with, i wonder if that is because my lack of knowledge with Overlay's gradle build set-up. in my cas-overlay build.gradle, I placed

Re: [cas-user] how do i enable jdbc feature in CAS 6.6.12?

2024-01-26 Thread Mohamed Amdouni
Hi, Did you tried to add the driver dependency ? cas-server-support-jdbc-drivers Le ven. 26 janv. 2024 à 18:42, Yan Zhou a écrit : > Hi there, > > I maybe missing something obvious. > > I created my own JDBC-based authenticator, I noticed that the JDBC > authentication is Not registered,

Re: [cas-user] how do i enable jdbc feature in CAS 6.6.12?

2024-01-26 Thread Ray Bon
Yan, Add your configuration class to src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports See https://apereo.github.io/cas/7.0.x/configuration/Configuration-Management-Extensions.html#register Ray On Fri, 2024-01-26 at 08:54 -0800, Yan Zhou