On Tue, Aug 30, 2022 at 11:25 AM Iván Gallego <
ivan.g...@gmail.com> wrote:
>
> I tried adding <distributable/> to all my web.xml but I get the same behaviour.
>
> What in particular would you be looking at in the auth configuration?
I'm trying to figure out the relationship between the application's
authentication (i.e. how does it indicate that a user is
authenticated) and the HttpSession. Unfortunately, I have no
experience with Shiro.
> I see in general is using the regular properties in a shiro.ini, with a couple of overwrites, but don't think that's making much of a difference (this app is more than 10 years old and quite big)
> It's using its own implementation of security manager for example (extending DefaultWebSecurityManager from Shiro) and extending EnterpriseCacheSessionDAO with some extra methods, but don't see much of a difference there.
Taking a look at
https://github.com/apache/shiro/blob/cd88a85bf1e20f03651983f872044e75b5f6d0e2/core/src/main/java/org/apache/shiro/session/mgt/eis/CachingSessionDAO.java
The framework seems to retain references to the HttpSession outside
the context of the request, which is forbidden by the servlet
specification. This probably explains why the session appears empty
after redirect.
This will be problematic for the default configuration of the
distributed session manager, which is optimized within these
constraints.
To get this to work at all, you will likely need to disable
transactions from the Infinispan cache configuration used by the
distributed session manager.
See:
https://docs.wildfly.org/26.1/High_Availability_Guide.html#session_concurrency
> --
> You received this message because you are subscribed to a topic in the Google Groups "WildFly" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/wildfly/NnW3TWRnQLM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
wildfly+u...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/wildfly/94a0aa7f-d0ed-4167-8a88-256367722f6cn%40googlegroups.com.