0 Replies Latest reply: Feb 26, 2013 9:54 AM by Arnaud B RSS

Dynamically change security role

Arnaud B Newbie

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