Jaa


FacebookClientWrapper.VerifySignature(HttpRequest, String) Method

Definition

Verifies the SHA1 signature of the raw request payload before bodyParser parses it will abort parsing if signature is invalid, and pass a generic error to response.

public virtual bool VerifySignature (Microsoft.AspNetCore.Http.HttpRequest request, string payload);
abstract member VerifySignature : Microsoft.AspNetCore.Http.HttpRequest * string -> bool
override this.VerifySignature : Microsoft.AspNetCore.Http.HttpRequest * string -> bool
Public Overridable Function VerifySignature (request As HttpRequest, payload As String) As Boolean

Parameters

request
HttpRequest

Represents the incoming side of an HTTP request.

payload
String

The request body.

Returns

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

Exceptions

request is null.

Applies to