CAS Authentication Handlers

36 views
Skip to first unread message

Colin Wilkinson

unread,
Sep 25, 2018, 10:18:39 PM9/25/18
to CAS Community
Hi,

I wondering if its possible to have multiple authentication handlers run for the same credential type. Take "ClientCredential" for instance, I am trying to have multiple authentication handlers run. I am trying to leave your default ClientAuthenticationHandler as and have second Authentication handler that maps the Client email to our staff and student id's, if no map is found then proceed to a registration screen.

My custom authentication is named "VicUniClientToLoginIdAuthenticationHandler" for instance, added for discussion purpose.

The problem I have is that is if I have VicUniClientToLoginIdAuthenticationHandler set to run prior to ClientAuthenticationHandler and it fails the failure is register, but the moment ClientAuthenticationHandler an succeeds then the failure is simply ignored and success flow is triggered.

But if I have the ClientAuthenticationHandler set to go first and succeeds then VicUniClientToLoginIdAuthenticationHandler is never called.

Is this possible and how?

Regards,
Colin
Reply all
Reply to author
Forward
0 new messages