Skip to content
University
Videos
Most watched
Topics
Updates
Search the videos
Topics
Signing secret and signature
All 8 moments in Digital Samba University that depend on this.
Get notified with webhooks
For developers · 3:18
0:01
Introduction
In this video, you'll set up a webhook, so your own software hears about calls the moment they're scheduled, changed or cancelled, and you'll check that each delivery really comes from Digital Samba.
Read
1:29
Signing secret
Anyone could send a request to your address, so check each delivery before you trust it.
Read
1:35
Signing secret
Every endpoint has its own signing secret: click the eye to show it, or copy it.
Read
1:41
Signing secret
The signature header holds a timestamp and a signature.
Read
1:45
Signing secret
Your server computes an HMAC with SHA-256 over the timestamp, a dot and the raw body, using the secret as the key, and compares the two.
Read
1:56
Signing secret
Here, the check says the delivery is genuine; change one character of the body, and it fails.
Read
2:02
Signing secret
To replace the secret, click Rotate: the old one stops being used straight away, so update your server promptly.
Read
3:01
Recap
So: add an endpoint and choose its events, check every signature with the signing secret, and use the delivery log when something goes wrong.
Read
All topics