Configuring your application to use EIM
Parent topic: Securing your Web applications with single signon
Related concepts:
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
- 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.
- Click the Authentication tab to view the authentication settings.
- Click the Use single signon radio button.
- 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.
- 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
- 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.
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. 
In this example, type
idTokenRR for the Name field, select
javax.jms.ConnectionFactory in the Type list, and
select Container from the Authentication list. 
- Click Finish.
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. 
Save and close the Web Deployment Descriptor file
and Web Bindings file. 