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 wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi there,

I maybe missing something obvious.

I created my own JDBC-based authenticator,  I noticed that the JDBC 
authentication is Not registered, so login does not load jdbc-authenticator at 
all.

set breakpoint in CasJdbcAuthenticationConfiguration, it is not called during 
CAS start-up.

how is this configuration being loaded, see the code below?

@ConditionalOnFeatureEnabled(feature = 
CasFeatureModule.FeatureCatalog.Authentication, module ="jdbc")

is this driven by the presence of cas.auth.jdbc and jdbc jars in dependenices?

Yan

Project dependencies.

implementation "org.apereo.cas:cas-server-support-jdbc"
implementation "org.apereo.cas:cas-server-support-jdbc-authentication"


I added configuration in META-INF/spring.factories like this, i created my own 
class, so as to load my custom jdbc Authenticator.

org.apereo.cas.adaptors.jdbc.config.MyCasJdbcAuthenticationConfiguration

then in cas.properties, i have all the properties filled.

cas.authn.jdbc.search[0]......

thanks,

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/bdd26d43d47ccbb4d90e75a80f1b95fb913e4cb9.camel%40uvic.ca.

Reply via email to