messagebird / csharp-rest-api

This repository contains the open source C# client for MessageBird's REST API.
ISC License
54 stars 60 forks source link

Webhook request verification error #81

Closed ahmetkocadogan closed 2 years ago

ahmetkocadogan commented 4 years ago

I am using WhatsApp sandbox.

I implemented request verification from sample code

var requestSigner = new RequestSigner(GetBytes("SIGNING_KEY"));
// @param expectedSignature Signature from the MessageBird-Signature header in its original base64 encoded state.
const string expectedSignature = "EXPECTED_SIGNATURE";
var request = new Request("1544544948", requestParams, GetBytes(requestBody));
requestSigner.IsMatch(expectedSignature, request)

Request verification is working for incoming messages, i have no problem with that. But after i send the response, messagebird api sends a new webhook for delivery status, but request verification is not successfull for that second request.

I am using the same verification code. What can be the issue here ?

ahmetkocadogan commented 3 years ago

Is there any way to resolve this issue ?

ahmetkocadogan commented 2 years ago

this issue is resolved.