You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (request == null) { throw new ArgumentNullException(nameof(request)); }
if (channelSecret == null) { throw new ArgumentNullException(nameof(channelSecret)); }
var content = await request.Content.ReadAsStringAsync();
var xLineSignature = request.Headers.GetValues("X-Line-Signature").FirstOrDefault();
if (string.IsNullOrEmpty(xLineSignature) || !**VerifySignature(channelSecret, xLineSignature, content)**)
{
**throw new InvalidSignatureException("Signature validation faild.");**
}
dynamic json = JsonConvert.DeserializeObject(content);
if (!string.IsNullOrEmpty(botUserId))
{
if (botUserId != (string)json.destination)
{
throw new UserIdMismatchException("Bot user ID does not match.");
}
}
return WebhookEventParser.ParseEvents(json.events);
The text was updated successfully, but these errors were encountered:
rungsoso
changed the title
500 Internal Server Error
Signature validation faild.
Aug 14, 2020
Verify signature has faild
if (request == null) { throw new ArgumentNullException(nameof(request)); }
if (channelSecret == null) { throw new ArgumentNullException(nameof(channelSecret)); }
The text was updated successfully, but these errors were encountered: