Hello,
We are using CAS Server 4.2.6 for few weeks now but we’re facing a problem with the SSO lifetime.
The ticket registry used is EhCache and the RememberMe feature is enabled, you can find the settings in this gist :
We would like default TGT lifetime of 12 hours (43200s) and a rememberMe of 7 days (604800s)
SSO works but it doesn’t last as expected, forcing users to reauthenticate. The SSO lifetime seems random and barely 2 hours long.
I tried the neverExpire policy but I still have the problem. I tried to investigate the problem logging EhCache in debug mode but there’s no message about forced eviction or something like this. I choosed large ehcache settings, enough memory settings, with disk overflow, but no amelioration.
The TGT, ST, TGC settings are set in a cas.properties file correctly loaded by the server as the other settings (ldap servers, ehcache, encryption, etc) are well applied.
Where could be the problem ?
Bonus question, the TGT seems linked to username/Client IP/UserAgent, which is not the behavior in version 3.5.x I think where the IP didn’t come into the equation.
As the users are more and more moving and switching network settings, it could be a problem. How I can link the TGT to username and UA only ?
Thank you,