GitHubWebhookMiddleware
in package
implements
MiddlewareInterface
GitHubWebhookMiddleware.
This middleware validates that an incoming request has a valid GitHub HMAC signature. If valid, sets isValidGitHubSignature = true, otherwise false.
Tags
Interfaces, Classes, Traits and Enums
- MiddlewareInterface
Table of Contents
- $gitHubSecret : string|null
- process() : ResponseInterface
- Process the incoming server request and return a response.
Properties
$gitHubSecret
private
string|null
$gitHubSecret
Methods
process()
Process the incoming server request and return a response.
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface