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
-
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.
-
-
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.
-
-
Set a property by name "Authorization" into the
headerPropertySet which is one of the child PropertySet of Input PropertySet of the newly created Filter business service Service_PreInvokeMethod created previously and assign the value to this property by substituting token_type + " " + access_token.