CAS 5.1.X - In Delegated authentication mode, 'service' is coming as null from the session

37 views
Skip to first unread message

Sanjay Semwal

unread,
Jun 10, 2023, 12:01:44 AM6/10/23
to CAS Community
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 

Sanjay Semwal

unread,
Aug 10, 2023, 9:38:12 PM8/10/23
to CAS Community, Sanjay Semwal
To add bit more to it; intermittently I have been getting the issue related to redirection in delegated authentication mode in CAS version 5.1.x. Pls see popup message attached. 
I am observing it coming more frequently in chrome than any other browser.

Any help would be highly appreciated.

Thanks
Sanjay

Screenshot 2023-08-10 at 3.45.12 PM.png

Sanjay Semwal

unread,
Aug 10, 2023, 9:38:12 PM8/10/23
to CAS Community, sanjay...@rez1.mygbiz.com
To add more to it. i have been getting the below pop-up for quite some time intermittently when i get response back from Delegated authentication. Any help would be highly appreciated.

Screenshot 2023-08-10 at 3.45.12 PM.png

Thanks
Sanjay 

On Friday, June 9, 2023 at 9:01:44 PM UTC-7 sanjay...@rez1.mygbiz.com wrote:

Ray Bon

unread,
Aug 14, 2023, 12:26:55 PM8/14/23
to cas-...@apereo.org, sanjay...@rez1.mygbiz.com
Sanjay,

Version 5.1 is very old. It is difficult to know if this is a bug in that version of cas or if it is a browser problem.
Your best, and safest, option is to upgrade and see if the issue persists.

Ray

On Thu, 2023-08-10 at 15:48 -0700, Sanjay Semwal wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Reply all
Reply to author
Forward
0 new messages