FacebookClientWrapper.VerifySignature(HttpRequest, String) 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.
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.