Table of Contents

Class WebhookSignatureValidator

Namespace
Ando.Server.GitHub
Assembly
Ando.Server.dll

Validates GitHub webhook request signatures.

public class WebhookSignatureValidator
Inheritance
WebhookSignatureValidator
Inherited Members

Constructors

WebhookSignatureValidator(string)

public WebhookSignatureValidator(string secret)

Parameters

secret string

Methods

Validate(string?, byte[])

Validates the webhook signature against the payload.

public bool Validate(string? signature, byte[] payload)

Parameters

signature string

The X-Hub-Signature-256 header value.

payload byte[]

The raw request body bytes.

Returns

bool

True if the signature is valid.