Hacker News new | ask | show | jobs
by kichik 206 days ago
You are indeed misunderstanding me. I am talking about returning the entire string to be signed. Not the result of the signature.
1 comments

Ah, my bad. Sorry.

But couldn't you then just make the call to an echo service (like HTTPbin) or simply dump the request when you send it?

The echo server will have no knowledge on how to construct the string to be signed.
But neither does the actual server. HMAC only verifies that the message is from whoever it claims to be from and that it is intact. It won't know what you intended the body of the request to look like.