You could follow an example of the Jdbc authn handler configuration: 
https://github.com/apereo/cas/blob/master/support/cas-server-support-jdbc/src/main/java/org/apereo/cas/adaptors/jdbc/config/CasJdbcAuthenticationConfiguration.java

Cheers,
D.


From: 'Adalbert Schwafel' via CAS Community <[email protected]>
Reply: [email protected] <[email protected]>
Date: June 28, 2017 at 3:22:41 PM
To: CAS Community <[email protected]>
Subject:  [cas-user] How to configure / inject DataSource into 
AbstractUsernamePasswordAuthenticationHandler (CAS 5.1)  

I have a basic CAS 5.1 running using the Maven overlay and a custom 
AuthenticationHandler following the blog post 
https://apereo.github.io/2017/02/02/cas51-authn-handlers/ 

I need to make my own DB queries to carry out authentication. Are there any 
pointers how to create a datasource and inject that into the auth handler, 
potentially also using a DB connection pool such as c3p0?

Thanks

.as


--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/d8a519dd-9533-4f90-ae2c-60e6ed9d7ea3%40apereo.org.

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.595402c8.6c424df9.2415%40unicon.net.

Reply via email to