Hello everyone!
I am using CAS 4.0.0 and I have recently implemented the Remember-Me feature,
as described here:
http://jasig.github.io/cas/development/installation/Configuring-LongTerm-Authentication.html
However, this seems not to work correctly without an adjustment of the
time-to-live value of the TGT cache:
<bean id="ticketGrantingTicketsCache"
class="org.springframework.cache.ehcache.EhCacheFactoryBean"
parent="abstractTicketCache"
p:cacheName="cas_tgt"
p:timeToIdle="0"
p:timeToLive="1209601"
p:cacheEventListeners-ref="ticketRMIAsynchronousCacheReplicator" />
Here, I have increased the TTL value to fully cover the lifetime of long-term
TGTs, as defined in ticketExpirationPolicies.xml.
Can someone tell me if this is the right approach?
The above HTML page does not mention anything about the caches, that's why
initially omitted this step.
If this is the way to go, could the above instructions be updated to mention
cache TTL adjustments, please?
At the moment, this change seems to fix the issue (no real-world testing yet),
although I am concerned about possible performance impact. The new TTL is about
42 times longer than the old one, so the cache size might grow accordingly. On
the other hand, only a small part of TGTs will be long-term and EHCache caches
should automatically evict old tickets.
Thank you!
Jarda
--------------------------------------------------
Jaroslav Kačer
IDC | Application Developer
Phone: +420723914123
Mail: [email protected]
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user