You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to use 'redisson' to manage Tomcat sessions, to be able to have Tomcat cluster setup. In our setup we've multiple webapplications deployed in Tomcat, and use SingleSignOn valve to have user logged into one application once and allow accessing other applications deployed on Tomcat.
When I configure Tomcat to use "org.redisson.tomcat.RedissonSessionManager" using below in context.xml
I see that sessions are being pushed to Redis, but the 'cache' in SingleSignOn valve breaks the flow. As per below code, it always looks for principal object in this in memory cache
I was able to get it working, by extending SingleSignOn valve class of Tomcat and serialize/deserialize SingleSignOnEntry objects to redis with additional code.
It would be nice if SingleSignOn valve extension is also provided as part of redisson-tomcat library.
Hi,
I am trying to use 'redisson' to manage Tomcat sessions, to be able to have Tomcat cluster setup. In our setup we've multiple webapplications deployed in Tomcat, and use SingleSignOn valve to have user logged into one application once and allow accessing other applications deployed on Tomcat.
When I configure Tomcat to use "org.redisson.tomcat.RedissonSessionManager" using below in context.xml
<Manager className="org.redisson.tomcat.RedissonSessionManager" configPath="${catalina.base}/conf/redisson.conf" broadcastSessionEvents="true" readMode="REDIS" updateMode="DEFAULT"/>
I see that sessions are being pushed to Redis, but the 'cache' in SingleSignOn valve breaks the flow. As per below code, it always looks for principal object in this in memory cache
SingleSignOnEntry entry = cache.get(cookie.getValue()); if (entry != null) { if (containerLog.isDebugEnabled()) { containerLog.debug(sm.getString("singleSignOn.debug.principalFound", entry.getPrincipal() != null ? entry.getPrincipal().getName() : "", entry.getAuthType())); } ........ } else { if (containerLog.isDebugEnabled()) { containerLog.debug(sm.getString("singleSignOn.debug.principalNotFound", cookie.getValue())); } .......
Is the above impl. of SingleSignOn expected work correctly ?
Is there something I am missing, to get this working ?
Thank you
The text was updated successfully, but these errors were encountered: