X-Convoy-Signature
.
The signature encoding, hashing algorithm and signing secret are all retrieved from your project settings. These values are used in validating the webhook signature in the header accompanying the webhook event.
t
and multiple signature hashes v0
and v1
. Convoy matches at least one of the signatures to verify the authenticity of the webhook event sent.
To further understand the concept of advanced signatures, we have made available a blog post on how they are generated as well as their use cases.
,
and store the list into a variable. Determine the type of signature passed in the header from the length of the list; the signature is an advanced signature if the length of the variable is greater than one and if the length equals 1, the signature type is simple.
If the signature is an advanced signature, the signature is further split using =
as the delimiter to get a key and value pair. The timetstamp and signatures values can now be retrieved respectively.
If the signature is a simple signature, the signature string is returned unprocessed.
base64
or hex
.,
. It should look like: {timestamp},{payload}