0 Replies Latest reply on Feb 26, 2013 9:54 AM by arnaboss

    Dynamically change security role

    arnaboss

      Hi,

       

      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:

      https://community.jboss.org/wiki/CachingLoginCredentials

       

      I got error

      javax.management.InstanceNotFoundException: Security:name=JaasSecurityManager
      

       

      Otherwise, old versions of Jboss supports a "DefaultCacheTimeout = 0", but I can't find it for AS 7.

       

      Thanks