TwilioClientWrapper.ValidateSignature Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.