Implementing Dynamic HMAC-SHA1 Authentication in OIC Gen 3 using JavaScript Libraries
Hi
We are currently working on REST API integration in Oracle Integration Cloud (OIC) Gen 3. This API requires a custom Authorization header to be dynamically generated for each request using an HMAC-SHA1 signature.
The required authorization format is as follows:
var verb_request_string = method + "\n\n\n" + timestamp_string + "\n" + request_string;
var encrypted_string = CryptoJS.HmacSHA1(verb_request_string, private_key);
var signed_hash = encrypted_string.toString(CryptoJS.enc.Base64);
var authorization_header = 'INTF ' + public_key + ":" + signed_hash;
We attempted to implement this logic using custom JavaScript library functions and within the integration flow. However, the implementation has not been successful.
0