Jaa


SlackClientWrapper.VerifySignature(HttpRequest, String) Method

Definition

Validates the local secret against the one obtained from the request header.

public virtual bool VerifySignature (Microsoft.AspNetCore.Http.HttpRequest request, string body);
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, body As String) As Boolean

Parameters

request
HttpRequest

The HttpRequest with the signature.

body
String

The raw body of the request.

Returns

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

Applies to