Configuring an application JAAS custom login context entry and login module using a JAAS configuration file for Liberty
JAAS configuration information can be configured in a JAAS configuration file.
About this task
We support the server.xml file, client.xml file and the JAAS configuration file for JAAS configuration. However, it is suggested to configure the JAAS custom login module in the server.xml file or client.xml file. For further details about configuring the JAAS custom login module, see Configuring a JAAS custom login module for Liberty.
The Liberty server reads the JAAS configuration file for an application JAAS custom login context entry and login module. The changes that are made to the JAAS configuration file are used by the local application and take effect after the application server is restarted. The JAAS configuration in the server.xml file takes precedence over what is defined in the JAAS configuration file. A configuration entry in the JAAS configuration file is overridden by an entry of the same alias name in the server.xml file.
To configure a JAAS custom login module, complete the following steps: