This content has been marked as final.
Show 2 replies
-
1. Re: RoleMappingLoginModule with rule: *=role1, role2
fcorneli Nov 28, 2006 11:41 AM (in response to fcorneli)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>
-
2. Re: RoleMappingLoginModule with rule: *=role1, role2
anil.saldhana Nov 28, 2006 1:11 PM (in response to fcorneli)/** * 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.