Securing webhooks
Last updated
Was this helpful?
Last updated
Was this helpful?
Fractal ID accepts only secure sites (HTTPS) as callback URLs.
When your secret token is set, Fractal ID uses it to create a hash signature with each payload. The hash signature is passed along with each request in the headers as X-Fractal-Signature
.
Fractal ID generates signatures using a hash-based message authentication code () with .
Your endpoint should verify the signature to make sure it came from Fractal ID. Example implementation in Ruby:
Your language and server implementations may differ than this code. There are a couple of very important things to point out, however:
To aid with your development process, here are some example scripts you can use to validate your assumptions.
Use your , not your client secret, for generating the digest for verification.