You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have a guide about webhook validation in PHP. It would be nice to have it directly in a sample and README.
Proposed solution
Register a webhook controller which takes webhook secret from environment variables and validates the signature of the request and respond OK (or other dummy result/maybe with a webhhok body) if it is fine, or invalid if the signature does not match.
Motivation
Currently, we have a guide about webhook validation in PHP. It would be nice to have it directly in a sample and README.
Proposed solution
Register a webhook controller which takes webhook secret from environment variables and validates the signature of the request and respond OK (or other dummy result/maybe with a webhhok body) if it is fine, or invalid if the signature does not match.
Additional context
web.php extension
Controller sample
There is a branch to check: https://github.com/Kentico/kontent-sample-app-php/tree/showcase-webhook
The text was updated successfully, but these errors were encountered: