Mapping users to RunAs roles

 

RunAs roles are used for delegation. A servlet or enterprise bean component uses the RunAs role to invoke another enterprise bean by impersonating that role. Before you perform this task:

 

  1. Open the application file by clicking File > Open; browse and select the application file.

  2. Click the application folder.

  3. Click the Bindings tab on the right-hand panel.

  4. Click Add under RunAs Bindings.

  5. Choose a role from the menu of the security role.

  6. Choose the User ID and Password and click OK. Make sure the user ID entered is part of the security role selected. If an All Authenticated special subject is assigned to the security role, you can use any valid user ID and password. If an Everyone special subject is assigned to Security Role, you do not need to map a user to that role.

  7. Repeat steps 4 through 6 for all the RunAs roles in the application.

  8. Click Apply when done.

 

Results

The ibm-application-bnd.xmi file in the application contains the user to RunAs role mapping table.

 

Usage scenario

This step alsois required to secure an application. This step is required when a servlet or an enterprise bean in an application is configured with RunAs settings.

 

What to do next

After securing an application using the AAT, you can install this application using the administrative console.


Enterprise bean component security
Role-based authorization
Delegations
RunAs roles to users mapping
Security: Links