Access with authorization from the application server

You configure security access for your users with authorization handled by the application server.

Users and groups

Decision Center has the following predefined roles: rtsAdministrator, rtsConfigManager, rtsInstaller, and rtsUser. Each role gives access to specific Decision Center features.

In the Liberty profile, you map groups of users to one of these roles. Liberty uses groups and roles for authentication and authorization.

In Decision Center groups are used for fine-grained security and permissions to branches and other decision service artifacts.

In your user registry, you should have a user that is mapped to both the rtsAdministrator and rtsInstaller roles. You need such a user to complete the configuration of Decision Center (create the database schema, publish a decision service, and so on.) after you deploy the Decision Center applications in the next step.

The following table summarizes roles, their use, and a default user for each of the predefined roles.

Role Use Default user and password
rtsAdministrator Gives the user administrator access. rtsAdmin, rtsAdmin
rtsInstaller Gives the user access to the Installation Settings Wizard in the Enterprise console. rtsAdmin, rtsAdmin
rtsConfigManager Gives the user configuration manager access. rtsConfig, rtsConfig
rtsUser Gives a user standard access. rtsUser1, rtsUser1

If you are using the basic user registry in the Liberty profile, declare your users and groups after the </dataSource> tag in file <WLP_HOME>/usr/servers/<SERVER_NAME>/server.xml:

<!-- Web application security -->
<basicRegistry id="basic" realm="customRealm">
    <user name="rtsAdmin" password="rtsAdmin"/>
    <user name="rtsConfig" password="rtsConfig"/>
    <user name="rtsUser1" password="rtsUser1"/>
    <group name="rtsAdministrator">
            <member name="rtsAdmin"/>
    </group>
    <group name="rtsInstaller">
            <member name="rtsAdmin"/>
    </group>        
    <group name="rtsConfigManager">
            <member name="rtsConfig"/>
    </group>
    <group name="rtsUser">
            <member name="rtsUser1"/>
    </group>
</basicRegistry>

Adding new groups

To use the Decision Center security and permissions mechanism on branches and other decision service artifacts, you need to declare additional groups. You establish users as members of the new group but also as belonging to one of the predefined roles. For example, if you want to add a group called Validator, you must:
  • Declare the new group. If you are using the basic user registry, this would give:
    <!-- Web application security -->
    <basicRegistry id="basic" realm="customRealm">
        ...
        <user name="Val" password="Val"/>
        ...
        <group name="rtsUser">
                <member name="rtsUser1"/>
                <member name="Val"/>
        </group>
        <group name="Validator">
                <member name="Val"/>
        </group>
        ...
    </basicRegistry>
  • For both the Business and Enterprise console applications, bind the new group to a security role that has the same name.
  • Add the new group to the WEB-INF\web.xml file in both the Business and Enterprise console .war files and redeploy.
  • After deploying, upload the group to the Decision Center database.

Mapping security roles to groups

You must map all predefined groups and additional groups to a role that has the same name.

Add the following security role information for both Decision Center consoles. First for the Business console:

<!-- Business console -->
    <application type="war" id="decisioncenter" name="decisioncenter" location="${server.config.dir}/apps/decisioncenter.war">
        <classloader delegation="parentLast" />
        <application-bnd>
            <security-role name="rtsAdministrator">
                    <group name="rtsAdministrator"/>
            </security-role>
            <security-role name="rtsInstaller">
                    <group name="rtsInstaller"/>
            </security-role>
            <security-role name="rtsConfigManager">
                    <group name="rtsConfigManager"/>
            </security-role>
            <security-role name="rtsUser">
                    <group name="rtsUser"/>
            </security-role>
        </application-bnd>
    </application>

Add the same security-role information for the Enterprise console application:

<!-- Enterprise console -->
    <application type="war" id="teamserver" name="teamserver" location="${server.config.dir}/apps/teamserver.war">
        <classloader delegation="parentLast" />
        <application-bnd>
            <security-role name="rtsAdministrator">
                    <group name="rtsAdministrator"/>
            </security-role>
            <security-role name="rtsInstaller">
                    <group name="rtsInstaller"/>
            </security-role>
            <security-role name="rtsConfigManager">
                    <group name="rtsConfigManager"/>
            </security-role>
            <security-role name="rtsUser">
                    <group name="rtsUser"/>
            </security-role>
        </application-bnd>
    </application>
When you add an additional group, you must:
  • Bind the new group to a security role that has the same name.
  • Add the new group to the WEB-INF\web.xml file in both the Business and Enterprise console .war files and redeploy.
  • After deploying, upload the group to the Decision Center database.