Configuring a Gateway Integration Endpoint - REST

Once a gateway integration endpoint has been created and the external system (Amazon S3 Blob Storage, Microsoft Azure Blob Storage, or REST) has been selected, the configuration settings allow you to identify the server housing the required data.

The following steps are for REST configuration.

  1. On the Gateway Integration Endpoint Configuration dialog, use the following parameters to specify which external system the gateway integration endpoint will access.

  RESTGateway.ServerURL=qa=http://step-qa,stage=http://step-stage

If no trust store locations are selected, the gateway connection is not configured to use SSL encryption and the connection will be established using a certificate signed by a recognized CA such as Verisign or Thawte.

  1. Click Save to complete the configuration.
  2. Create a business action to access the gateway endpoint. For details, see Gateway Integration Endpoint Bind in the Resource Materials online help here.

Authentication

The gateway integration endpoint REST plugin supports both basic authentication and token-based authentication.

Basic Authentication

With preemptive authentication enabled, the basic authentication value for the Authorization header will be sent with the first request to the external service instead of only sending the value after having received a basic authentication challenge from the service.

Token-Based Authentication

With the token-based authentication option, the responsibility for producing any required request headers is delegated to a business function. The business function must be configured to not expect any input and must produce a Map<String, String>, each map entry being a header to be sent with the request to the service.

The screenshot below shows the editor for a compatible business function that retrieves a token using the OAuth 2.0 client credentials flow and passes back to the gateway integration endpoint REST plugin as a value for the Authorization header.

The parameter for selecting the business function is the 'Auth Header Value Function.' The REST plugin will automatically call the business function when a new token is required.

Note: It is strongly discouraged to configure both basic authentication and token-based authentication and this configuration is not supported.

Proxy Configuration Setup

The following are two examples of how the dynamic RESTGateway.ProxyConfiguration property can be configured:

RESTGateway.ProxyConfiguration.1=ProxyConfig1,10.64.8.253,808,username,password
RESTGateway.ProxyConfiguration.2=ProxyConfig2,10.64.9.253,64,user10,password1

To break the first of these two properties into its component parts (each element separated by commas), refer to the screenshot and the numbered list below:

  1. Required text to enable the REST Gateway Proxy configuration property
  2. The name of the configuration. This is what will appear in the dropdown as a selectable option, like so:

  1. The IP of the proxy server being accessed
  2. The port of the proxy server being accessed
  3. The username for the proxy server being accessed (optional)
  4. The password for the proxy server being accessed (optional)