Enforcing Basic Credential Mapping on an Outbound Request
In this sample, basic credential mapping is enforced when InvokeRestApiProcess.bwp process makes a client call to the RestBindingProcess.bwp process.
Procedure
Result
The client is successfully invoked and the file invokeRest.log is generated at C:\tmp\policy on a Windows system, or at /tmp/policy on a Unix system.
Understanding the Configuration
The following processes interact with each other in this project:
- RestBindingProcess.bwp: To ensure the message recieved from InvokeRestApiProcess is sent by an authenticated user, the service side of this process is associated with a Basic Authentication policy that is configured with XML file authentication. The XML file is included in the sample project and stored in your workspace.
- InvokeRestApiProcess.bwp: To ensure credentials are provided in the request message sent to RestBindingProcess, a Basic Credential Mapping policy configured for fixed credential mapping is associated with the InvokeRESTAPI activity in this process.
Copyright © Cloud Software Group, Inc. All rights reserved.