Hello there,
I am using CAS 5.1.X, and facing this problem intermittently. Can you please suggest some solution?
In my case CAS is working as SP in delegated auth mode and Azure is as IDP. So when authentication is done on Azure, i get the SAML response. After that the control flow goes to CAS library class "DelegatedClientAuthenticationAction" where it tries to fetch "service" from the session, which is coming as null object.
Here is the code fragment from DelegatedClientAuthenticationAction: -
----------------------
// retrieve parameters from web session
final Service service = (Service) session.getAttribute(CasProtocolConstants.PARAMETER_SERVICE);
context.getFlowScope().put(CasProtocolConstants.PARAMETER_SERVICE, service);
LOGGER.debug("Retrieve service: [{}]", service);
--------
Any help would be appreciated on this.
Thanks
Sanjay