Complete example demonstrating timing-safe HMAC signature verification for DigiWebscape webhooks using FastAPI.
-
Install FastAPI and Uvicorn:
pip install fastapi uvicorn digiwebscape
-
Set your environment variable:
export DIGIWEBSCAPE_WEBHOOK_SECRET="whsec_your_secret_here"
-
Run the server:
uvicorn main:app --reload --port 8000