Webhook: Difference between revisions

Created page with "A representation of the webhook object {| class="table" style="width:100%; border: 2px solid black;" |- | style="color:gray; border-bottom: 2px solid gray" |Property | styl..."
 
No edit summary
 
Line 52: Line 52:
|-  
|-  
| style="border-bottom: 2px solid #ededed" |webhook-signature
| style="border-bottom: 2px solid #ededed" |webhook-signature
| style="border-bottom: 2px solid #ededed" |Harmonizely can optionally sign the webhook events it sends to your endpoints by including a signature in each event’s Webhook-Signature header. This allows you to verify that the events were sent by Harmonizely, not by a third party
| style="border-bottom: 2px solid #ededed" |SimplyMeet.me can optionally sign the webhook events it sends to your endpoints by including a signature in each event’s Webhook-Signature header. This allows you to verify that the events were sent by SimplyMeet.me, not by a third party
|-  
|-  
| user-agent
| user-agent
| The user agent. Always set to Harmonizely.
| The user agent. Always set to SimplyMeet.me.
|}
|}
Request payload:
Request payload:
Line 117: Line 117:
</pre>
</pre>
'''Verifying signature manually'''<br>
'''Verifying signature manually'''<br>
Harmonizely generates webhook signatures using a hash-based message authentication code (HMAC) with SHA-256 which is then base64 encoded.<br>
SimplyMeet.me generates webhook signatures using a hash-based message authentication code (HMAC) with SHA-256 which is then base64 encoded.<br>
1. Determine the expected signature<br>
1. Determine the expected signature<br>
Compute an HMAC with the SHA256 hash function and encode it using base64. Use the webhook’s signing '''secret''' as the key, and use the '''request's payload''' string as the message.<br>
Compute an HMAC with the SHA256 hash function and encode it using base64. Use the webhook’s signing '''secret''' as the key, and use the '''request's payload''' string as the message.<br>