jaikiran pai wrote:
Replied in the other thread https://community.jboss.org/message/744123#744123
I am using org.jboss.security.SimplePrincipal for simplicity, that is a little more permissive by default with its definition of equals, and with it the principal that is passed to JBossCachedAuthenticationManager.isValid() will not always be equals to the principals stored on domainCache keys, the caller principal (the module is instantiating another different instance)