This content has been marked as final. Show 2 replies
The following also did the trick:
<login-module code="MyLoginModule" flag="required"></login-module> <login-module code="org.jboss.security.auth.spi.IdentityLoginModule" flag="optional"> <module-option name="password-stacking">useFirstPass</module-option> <module-option name="roles">TheRoleIWantToAdd</module-option> </login-module>
/** * JBAS-3323: Role Mapping Login Module that maps application role to * declarative role * - You will need to provide a properties file name with the option "rolesProperties" * which has the role to be replaced as the key and a comma-separated role names * as replacements. * - This module should be used with the "optional" mode, as it just adds * onto the authenticated subject */
The purpose of this LM has been clearly defined in the Javadoc.