Signed Webhook event verification fails when payload is a JSON String and api request body is map of string #722
Labels
status: waiting for feedback
waiting for feedback from the submitter
type: getting started
question while getting started
Issue Summary
We are trying to validate signed webhook events in java with POST API.
We are sending mail and configured https://webhook.site/73452d78-3dea-478b-a005-d87371972190 as public webhoo url.
We are getting payload, timestamp and signature.
but while verifying above on public key its failing.
Steps to Reproduce
Enable Signed Event Webhook Requests on SendGrid website
Copy the public from SendGrid and paste it in the java method
Configure Mail Settings to enable webhooks and configure to send the event to our endpoint
Send an email using SendGrid
The webhook event is received and we try to validate the request against the public key
We retrieve the info in headers X-Twilio-Email-Event-Webhook-Signature and X-Twilio-Email-Event-Webhook-Timestamp
The validation always fails.
Pls find the code which i am using.
Payload as below:
The text was updated successfully, but these errors were encountered: