Java Reference
In-Depth Information
Setting up your first login module
In the following section, we will demonstrate how to secure an application using the
RealmDirect security domain, which was introduced earlier. The RealmDirect login
module is based on the following two files: : This contains the list of usernames and
passwords : This contains the mapping between the
users and their roles
These files are located in the application server configuration folder and they are updated
each time you add a new user via the script. For our
purpose, we will create a new application user named demouser , which belongs to the
role Manager , as shown in the following screenshot:
Once the user is added, the file will contain the
username and the MD5 encoding of the password, shown as follows:
Conversely, the file will contain the roles gran-
ted to the demouser username once logged in:
Search WWH ::

Custom Search