Boris, The TGC is only used as a way to 'find' the TGT. As long as the TGT is valid, the cookie is valid. By default, TGC is valid for the session, maxAge = -1. There is a most recently used option for TGT, https://apereo.github.io/cas/6.1.x/ticketing/Configuring-Ticket-Expiration-Policy.html#timeout
Ray On Tue, 2020-05-12 at 09:00 -0700, Boris P1 wrote: Good morning, I'am working on the "Remember Me" feature of CAS v5.3. Thanks to the Maven overlay, in order to make the TGT timeout depend on the last service access, i made the Long-Term Ticket Granting Ticket support a TimeoutExpirationPolicy instead of HardTimeoutExpirationPolicy, in the RememberMe-enabled case: https://github.com/apereo/cas/blob/5.3.x/core/cas-server-core-tickets/src/main/java/org/apereo/cas/config/CasCoreTicketsConfiguration.java#L297 At the 297 line, i put TimeoutExpirationPolicy instead of HardTimeoutExpirationPolicy (and made others works...). But i'm wondering if it's possible to give an extension for the CAS cookie lifetime according to the last service access. In others words, does the Long-Term Ticket Granting Cookie have the capability to support a TimeoutExpirationPolicy like the Long-Term Ticket Granting Ticket does? TGC infos: https://github.com/apereo/cas/blob/5.3.x/core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/TGCCookieRetrievingCookieGenerator.java https://github.com/apereo/cas/blob/5.3.x/core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieRetrievingCookieGenerator.java https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties.html#ticket-granting-cookie https://apereo.github.io/cas/5.3.x/protocol/CAS-Protocol-Specification.html#415-long-term-ticket-granting-cookie-properties -- Ray Bon Programmer Analyst Development Services, University Systems 2507218831 | CLE 019 | [email protected]<mailto:[email protected]> I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- 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/b34be4f5c99ef5f7ebb43c701c924fcb9a17f4b9.camel%40uvic.ca.
