Products Downloads


French version


 

Module configuration

Extract from wagon.xml file:



<realm name="adelialoginModuleName="JavaEELoginModuleclassName="com.hardis.adelia.cloud.security.realms.JavaEERealm"/> 

<loginModules> 

    ... 

   <loginModule name="JavaEELoginModuleclassName="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. 


Warning: If you are updating an existing application to use the JavaEERealm, please ensure that the realmMappings.properties file contains the JavaEERealm definition.


realmMapping.properties
BasicRealm=adelia/desktop/LoginWidget
JavaEERealm=adelia/realms/JavaEERealm
  • Aucune étiquette