How to configure / inject DataSource into AbstractUsernamePasswordAuthenticationHandler (CAS 5.1)

123 views
Skip to first unread message

Adalbert Schwafel

unread,
Jun 28, 2017, 3:22:38 PM6/28/17
to CAS Community
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


Dmitriy Kopylenko

unread,
Jun 28, 2017, 3:26:06 PM6/28/17
to cas-...@apereo.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 cas-user+u...@apereo.org.
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.

Misagh Moayyed

unread,
Jun 28, 2017, 3:26:09 PM6/28/17
to cas-...@apereo.org

 

From: 'Adalbert Schwafel' via CAS Community [mailto:cas-...@apereo.org]
Sent: Wednesday, June 28, 2017 12:23 PM
To: CAS Community <cas-...@apereo.org>
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/ 

--

Reply all
Reply to author
Forward
0 new messages