Module configuration
Extract from wagon.xml file:
<realm name="adelia" loginModuleName="JavaEELoginModule" className="com.hardis.adelia.cloud.security.realms.JavaEERealm"/> <loginModules> ... <loginModule name="JavaEELoginModule" className="com.hardis.adelia.cloud.security.loginmodules.jee.JavaEELoginModule" /> ... </loginModules> |
This login module must be used in conjunction with the JavaEERealm.
In this mode, the user is authenticated by the application container (tomcat). The roles are tested during connection by the JavaEERealm.
The isUserInRole(role) API sends the tested value during connection by the JavaEERealm, it is "False" if the list of roles to test is not entered.
The use of the isUserInRole API requires the security module used on the application container to be able to provide a list of roles.