I'm using a custom login module successfully and now I would like to change the user security-role dynamically, without logout the current user.
I'm able to add a new role into the subject but it's not considered. I think login data i saved in cache, so I tried the following:
I got error
Otherwise, old versions of Jboss supports a "DefaultCacheTimeout = 0", but I can't find it for AS 7.
Retrieving data ...