To use the UserName token for authentication, you must
set up the client.
Procedure
- Open your project in a Rational Application Developer workspace
with a Web client.
- From the Administrative Console, navigate to Services
> Policy Sets > Application Policy Sets.
- Select the atomic transaction policy set that was created
on the server side for UserName Token Authentication.
- Click Export.
Note: If
the policy that was created on the server side accepts either UserName
token or LTPA token, a new policy set has to be created that contains
only the UserName token.
- Select the appropriate policy set ZIP file and save it
to your local drive.
- Transfer the policy set to the machine that contains the
client instance to support Web Services with atomic transactions.
- Open Rational Application Developer on the client machine
and navigate to File > Import > Web services > WebSphere
policy sets.
- Click Next.
- Click Browse... and locate the policy
set binding file that was exported from the server. The wizard reads
the file and displays its contents if they are valid.
- Ensure that the displayed policy set name is correct, then
click Finish.
- Locate the client project in the project listing and navigate
to <ProjectName> > Services > Clients.
- Right-click on the desired service under the project hierarchy,
and click Manage Policy Set Attachment...
- Click Next, and then click Add.
- In the resulting window, ensure the service name is correct.
- Set the policy set to the one that was just imported, and
type the binding name in the Binding field.
- Click OK.
- From the Bindings Configuration window, select WS-Security
and click Configure.
- Select the desired callback handler, such as com.ibm.websphere.wssecurity.callbackhandler.UNTGenerateCallbackHandler.
- Specify the user name and password.
- Select Add Timestamp and Add Nonce.
- Click OK, then click Finish.
- Publish the updated client application on the server.
- Import the policy set into the client server.
- Right-click on the server name and select Administration
> Run administrative console.
- Navigate to Services > Policy sets > Application
policy sets.
- Click Import, and select From
selected location.
- Select the new policy set that was exported from the
server and click OK.
- Click Save to save your changes
to the master configuration. The client is now ready to
securely interact with InfoSphere® MDM.