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.

Reply via email to