CMOD Rest APIs in OIC
Summary
Using CMOD rest api to download the documents from SAPContent
Hi All,
We have a requirement to use CMOD Rest APIs to download the documents from SAP using OIC.
To access a CMOD Rest API, we need to pass Authorization as header. The Authorization contains access ID and signature. The signature is generated in the below way.
String Authorization = “CMODSharedKey” +” “ + AccessID + “:” + Signature;
Signature = Base64( (Hmac-SHA256 ( SecretKey, UTF-8-Enoded (StringToSign) );
StringToSign = Method+ “\n” +
Date + “\n” +
URL + “\n” +
Resource + “\n” +
AccessID;
Is there a way to generate this signature in OIC using javascript functions?
Can anyone please help me if this is already implemented?
Tagged:
0