Configuring your application to use EIM

Parent topic: Securing your Web applications with single signon

Related concepts:

Deployment descriptor

Configuring authentication settings for your WebFacing application

About this task

If you are using the WebFacing Tool, configure authentication settings in the Run Time properties for your project. See Setting authentication options for more information on setting authentication options for WebFacing applications.

Procedure

  1. To open your WebFacing project properties, right-click the project in the WebFacing Projects view, and select Properties. The host name in the project settings is the system containing the target registry.
  2. Click the Authentication tab to view the authentication settings.
  3. Click the Use single signon radio button.
  4. For this example, check the Specify EIM resource reference field and enter idTokenRR. Note: The string idTokenRR can be any string. It is used when mapping this resource reference to the actual adapter name configured in WAS. This string is case sensitive.
  5. Click OK to finish.

Adding a resource reference to the Web Deployment Descriptor

About this task

Now update the Web Deployment Descriptor for WebFacing applications.

Procedure

  1. In the Navigator view, expand the Web project folder and double-click the Web Deployment Descriptor (web.xml) file in the WebContent\WEB-INF folder.
  2. In the Design tab select the Web Application (name of the application) and click the Add button in the Overview area. In the popup scroll down to select Resource Reference and click OK to configure the resource references.
  3. In this example, type idTokenRR for the Name field, select javax.jms.ConnectionFactory in the Type list, and select Container from the Authentication list.
  4. Click Finish.
  5. On the WebSphere Deployment Descriptors Window, click WebSphere Bindings Descriptor. On the Design tab, select Web Bindings and click the Add button. Select Resource Reference in the pop up window and click OK. Enter eis/idTokenRR for the Binding name field. Enter idTokenRR in the Name field.
  6. Save and close the Web Deployment Descriptor file and Web Bindings file.