I'm using jboss 4.2.3 and jaas org.jboss.security.auth.spi.DatabaseServerLoginModule.
After a user is logged in I want to add a role to it. How can I do it?
For example, the user clicks in a button and a role is added...
Clarification: I have 1 app where a user does the login. In the login the users gets some roles (from the db). After that I want to add another roles to the user in my code. My example is: after the user is logged in, he can click a button and in my servlet a new role is added to the user.
It seems Jboss doesn't allow this, roles can be accessed only in the login module.