Jaa


TwilioClientWrapper.ValidateSignature Method

Definition

Validates an HTTP request as coming from Twilio.

public virtual bool ValidateSignature (Microsoft.AspNetCore.Http.HttpRequest httpRequest, System.Collections.Generic.Dictionary<string,string> body);
abstract member ValidateSignature : Microsoft.AspNetCore.Http.HttpRequest * System.Collections.Generic.Dictionary<string, string> -> bool
override this.ValidateSignature : Microsoft.AspNetCore.Http.HttpRequest * System.Collections.Generic.Dictionary<string, string> -> bool
Public Overridable Function ValidateSignature (httpRequest As HttpRequest, body As Dictionary(Of String, String)) As Boolean

Parameters

httpRequest
HttpRequest

The request to validate.

body
Dictionary<String,String>

The request payload, as key-value pairs.

Returns

The result of the comparison between the signature in the request and the hashed body.

Applies to