InvalidCloudCenterEventSignatureError indicates that a cloud-center-event had an invalid signature.
validateCloudCenterEventSignature(
process.env.APP_SECRET,
"POST",
"/myapp/dvelop-cloud-lifecycle-event",
"",
{
"x-dv-signature-algorithm": "DV1-HMAC-SHA256",
"x-dv-signature-headers": "x-dv-signature-algorithm,x-dv-signature-headers,x-dv-signature-timestamp",
"x-dv-signature-timestamp": "2019-08-09T08:49:42Z"
}, {
"type": "subscribe",
"tenantId": "id",
"baseUri": "https://someone.d-velop.cloud"
},
"02783453441665bf27aa465cbbac9b98507ae94c54b6be2b1882fe9a05ec104c"
);
Validate a cloud-center-event-signature against your appSecret.
The cloud-center-event-signature should be validated for every cloud-center-event. Refer to the d.velop cloud center API for more information.