RequestValidator
Home > @backstage/plugin-events-node
> RequestValidator
Validator used to check the received HTTP request transmitting an event payload.
E.g., it can be used for signature verification like for GitHub webhook events (https://docs.github.com/en/developers/webhooks-and-events/webhooks/creating-webhooks\#secret) or other kinds of checks.
Signature:
export type RequestValidator = (request: RequestDetails, context: RequestValidationContext) => Promise<void>;
References: RequestDetails, RequestValidationContext