Skip to content

Commit 7ae31ec

Browse files
authored
Removed extraneous validation challenge from webhook handler
Removed Zoom endpoint validation challenge from webhook handler
1 parent 430ee83 commit 7ae31ec

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

examples/python.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@ def verify_signature(body: str, timestamp: str, signature: str) -> bool:
6060
def handle_webhook(payload, request, response):
6161
signature = request.headers.get('x-zm-signature', '')
6262
timestamp = request.headers.get('x-zm-request-timestamp', '')
63-
64-
# Zoom endpoint validation challenge
65-
validator = request.headers.get('x-zm-webhook-validator')
66-
if validator:
67-
response.set_status(200)
68-
response.send({'plainToken': validator})
69-
return
70-
63+
7164
if not verify_signature(str(payload), timestamp, signature):
7265
response.set_status(401)
7366
response.send({'error': 'Unauthorized'})

0 commit comments

Comments
 (0)