語言

TwilioClientWrapper.ValidateSignature 方法

定義

驗證 HTTP 請求是否來自 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

參數

httpRequest
HttpRequest

驗證的請求。

body
Dictionary<String,String>

請求有效載荷,作為鍵值對。

傳回

這是請求中簽章與雜湊後的正文比較結果。

適用於