Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
CMOD Rest APIs in OIC — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

CMOD Rest APIs in OIC

Received Response
11
Views
1
Comments
edited Aug 19, 2021 6:43AM in Integration 1 comment

Summary

Using CMOD rest api to download the documents from SAP

Content

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!