SlackClientWrapper.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.
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.