Adding Script for OAuth Support

You must add an OAuth support script, as shown in the following procedure, when configuring OAuth support for Siebel REST outbound connections.

To add script for OAuth support

  1. Get the access token from your service provider.

    • Call the service that provides the access token using the SendReceive method of the “EAI HTTP Transport” business service by providing appropriate parameters.

    • This call will return the access token, in the response body, as a JSON string.

    • The JSON string will be in the response – in the PropertySet value of the SendReceive method.

  2. Extract the access token from the response returned by the token provider:

    • Call the "jsontops" method, passing in the response PropertySet received from the SendReceive method invoked in Step 1.

    • The "jsontops" method will return a PropertySet with the token and other response values as a property.

    • Extract the "access_token" and "token_type" properties.

  3. Set the “Authorization:header” property to contain the token_type in the Input Arguments of the proxy business service method.