The Hash - Dojo webhooks examples #8
Replies: 1 comment 2 replies
-
I've done another test. I then add a single line (rather long line) in program.cs
This will cause an exception if the hash is incorrect. I cut and paste the sample json carefully (see above) along with the secret. Then took the code directly from Dojo.Net.Webhooks.WebbhookPayloadUtils
So either I'm not handling/formatting the data before it goes into the functions or there is minor issue with the json data. Maybe a space when there shouldn't be. Maybe worth checking. |
Beta Was this translation helpful? Give feedback.
-
On this page
https://docs.dojo.tech/docs/development-resources/webhooks
Step 3. Verify Dojo webhooks
Here is this json
and with this secret
ws_OYsyzcrH70GpJfs8MMkKpg
once HMAC-SHA256 hashed it is claimed should get
sha256=94-AC-93-67-D6-8B-69-6D-15-A2-C2-45-40-98-B5-E7-64-72-38-C5-1F-6D-32-D0-5F-CB-91-20-A9-20-64-F4
But using online HMAC-SHA256 checkers I'm getting
4c8febded69a1ea33530ac7a5706bf840b4a5d24fd4b715c9a5e64377d1bf19c
I'm planning on figuring out why they are different today.
Beta Was this translation helpful? Give feedback.
All reactions