When a report is created or updated, Ushahidi Platform / Potres2020 can send a POST request to a third- party application listening to HTTP requests on the internet.
Your application receiving the web hook call may check this signature to verify that the web hook payload was originated in the Platform.
More info: Ushahidi - Web hooks
This is a helper API to verify the sha256 digest.
API doc: here
Written in Javascript / NodeJS.
Production is currently deployed on Repl.it: https://middleware-api.potres2020.repl.co/api/potres2020/utils/checkSha256
Online IDE and deployment: https://repl.it/@potres2020/middleware-api Let me know if you need an invite.
The easiest way how to run it for yourself is like this: Run your version on Repl.it
NodeJS >=v12.18.3
./setup.sh
./run.sh
Install nodemon: npm install -g nodemon
And then in Idea create a Run/Debug configuration like this:
