I wouldn’t do it this way. I’d personality plug in Groovy attribute resolver where you’d be able to do external systems HTTP calls, etc. All working within CAS’ framework without the need to reinvent the wheel
https://apereo.github.io/cas/5.0.x/installation/Configuration-Properties.html#groovy Cheers, D. From: Gangadhar Vulpay <[email protected]> Reply: [email protected] <[email protected]> Date: January 27, 2017 at 11:39:05 AM To: CAS Community <[email protected]> Subject: [cas-user] Database Authentication and External Service for more information about principle object First I would like to thanks all CAS Community users for you support. We need to do following 1) Authenticate the user against database (Say MySQL) 2) On success full authentication Call external Service to get more information about user (It could be like authorization data) 3) then build the Principle with Step1 and Step2 Data. I am planning to do this as follows 1) Write our own Database Authentication Handler for Authentication 2) Write web Service client to talk to Authorization service to get more data As per documentation we no need to write our own DatabaseAuthentication handler. If we configure below properties it will work ----- cas.authn.jdbc.query[0].sql= cas.authn.jdbc.query[0].healthQuery= cas.authn.jdbc.query[0].isolateInternalQueries= cas.authn.jdbc.query[0].url= ...... ---- But since I need more data from other service to return final principle object, I was thinking I will write Eternal web-service call inside . CustomDatabaseDatabaseAuthenticationHandler.authenticateUsernamePasswordInternal { 1) check in database 2) On success, call external webservice. } I am thinking my design is not clean. It will be helpfull if any one has this type of use-case or any clean design to do with CAS with our doing custom coding. Thanks, Ganga -- - 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/aea725c7-2171-4f9a-a622-a8154f2ac3fd%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.588b809a.6aab58d5.17c4%40unicon.net.
