Skip to content

docs(python): sign canonical JSON in webhook verification example#129

Open
SAY-5 wants to merge 1 commit into
zoom:mainfrom
SAY-5:fix-python-webhook-signature
Open

docs(python): sign canonical JSON in webhook verification example#129
SAY-5 wants to merge 1 commit into
zoom:mainfrom
SAY-5:fix-python-webhook-signature

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jun 18, 2026

Copy link
Copy Markdown

Fixes #113. The Python webhook example hashed str(payload), which is the dict repr (single quotes, spaces), so the HMAC never matched the canonical JSON Zoom actually signs and every webhook came back 401. This switches it to json.dumps(payload, separators=(",", ":"), ensure_ascii=False) so the signed string matches JSON.stringify(payload) byte-for-byte like the Node example already does, and adds a short note explaining why both flags are needed.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v1.2] Fix broken webhook signature example in examples/python.md

1 participant