How to implement draft-cavage-http-signatures for REST connectors
Hi,
We need to implement the draft cavage http signatures in pega for a REST connector. Basically it means we need to add two header params:
X-Digest: A sha256 encoded string of the Body of the REST request
and
X-Signature: pretty much an encrypted/signed version of header params and body
Now from postman we have some java functions to establish this but the main issue we are facing is how to get to the body of the REST Request and its headers. We know about pyInvokeRESTConnector but cannot seem to get to the real body there?
Basically I need a way to access both body and headers of the REST request just before Pega sends it, alter its header via encryption of the body and then have Pega send it.
I did notice the communication between a Pega server and PDC can use Message Signing as an option on the REST communication between server and PDC instance.
Any help or tips greatly appreciated.
regards,
Leo