Questo contenuto non è disponibile nella lingua selezionata.
17.3.3. Configuring a Datasource to Use Login Modules
Procedure 17.1. Configuring a Datasource to Use Login Modules
Add the
<security-domain-parameter>
to the XML file for the datasource.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add an application policy to the
login-config.xml
file.The authentication section needs to include the configuration for your login-module. For example, to encrypt the database password, use theSecureIdentityLoginModule
login module.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If you plan to fetch the data source connection from a web application, authentication must be enabled for the web application, so that the
Subject
is populated. - If users need the ability to connect anonymously, add an additional login module to the application-policy, to populate the security credentials.
- Add the
UsersRolesLoginModule
module to the beginning of the chain. TheusersProperties
androlesProperties
parameters can be directed to dummy files.Copy to Clipboard Copied! Toggle word wrap Toggle overflow