isCOBOL WebClient : Configuring Users : Reading users from a property file
Reading users from a property file
In order to configure users via property file:
1. add the "database+property" security module to the Security Module Class Path as explained in Configuring users through property file or JDBC data source,
2. set the Security Module Name field to "org.webswing.security.modules.property.PropertySecurityModule".
A new section named Security Module Config - General appears. This section includes only one field named File, that allows you to provide the location of the property file (by default a file named user.properties is searched in the WebClient working directory).
Each line in that file defines a user. The syntax is:
user.<username>=<password>[,role1][,role2]
For example:
user.admin=admin,admin
user.support=support,support
user.user=user