Skip to Content
0
Dec 23, 2022 at 07:19 AM

Sap PI Rest sender-Sha 256-hmac authentication.

191 Views

Dear sir,

Could you please help me on below issue

We have a requirement like

Source-Non Sap(Rest API-Post) to Receiver-Sap(RFC) as synchronous scenario.

REST API(POST) created and given to third party they are passing body in raw as XML format and hmac parameter in http header.

In PI body will pass in sha256 algorithm need to make hash then we have to validate hmac parameter value and hash value are same then need to pass body to receiver system.

Difficulty is here I can pass the body in sha256 algaritham and can make encode hash but how to compare with http header parameter hmac.

Could you tell how to catch http header while third party is sending to PI and API is created in PI and given to third party.

Thanks and Regards,

Dileep