03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 4-10 Defining <strong>Security</strong> role references in Application Assembly Tool<br />

<strong>Security</strong> Role References with <strong>WebSphere</strong> Studio<br />

The following steps will show how to define <strong>Security</strong> Role references for the Web<br />

module in <strong>WebSphere</strong> Studio Application Developer.<br />

1. Open the Web perspective in Studio, select the J2EE Navigator.<br />

2. Expand the itsobankWeb tree and double-click Web deployment<br />

descriptor. This will open the editor with the web.xml file.<br />

3. Switch to the Servlets tab.<br />

4. Select TransferServlet in the Servlets and JSP section.<br />

5. In the Authorized Roles section, click Edit. This will open the Select<br />

Authorized Roles dialog box.<br />

6. Select the roles that you want to add, for example: manager and clerk.<br />

This performs the reference a bit differently than the Application Assembly<br />

Tool; in this case, the name in the source code and the link to the application<br />

roles will automatically have the same reference name; in our example, the<br />

reference to manager is manager, the reference to clerk is clerk. You can<br />

check the entry in the web.xml source by searching for the following tag:<br />

. This is not the case in Application Assembly tool, where<br />

the actual reference name and link name can be different.<br />

Chapter 4. Securing Web components 57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!