Hi,
I have the following situation: I receive a HTTP message in PowerAutomate (webhook). This message contains a body with some JSON-formatted data (serialized!), and signature/hash (HMAC SHA256) in the header.
Now, I want to calculate the hash to verify the message. For this I use a 3rd party action, e.g. from
Encodian.
But I do not get the expected result!
Doing some examination I found out that whatever I put into the input parameters, PowerAutomate is too helpful to recognize it as JSON and prettify it. Doing so it inserts line breaks and spaces - however, this alone is not influencing the hash (strangely...). BUT: what it also does is converting decimals: "budget":2.0 becomes "budget": 2 - and this finally leads to a different hash.
It doesn't matter whether I insert the string manually directly into the HMAC action, put into a variable first, or use the body variable from my message directly without touching.
Is there any possibility to prevent PA from doing so? Can I force PA to pass raw data?
Thanks!