We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a57d0 commit 6337609Copy full SHA for 6337609
python-flask-directory-sync-example/app.py
@@ -29,12 +29,12 @@ def directory_groups():
29
@app.route('/webhooks', methods=['POST'])
30
def webhooks():
31
payload = request.get_data()
32
- sig_header = request.headers['Workos-Signature']
+ sig_header = request.headers['WorkOS-Signature']
33
34
response = workos_client.webhooks.verify_event(
35
- payload = payload,
36
- sig_header = sig_header,
37
- secret = os.getenv('WEBHOOKS_SECRET')
+ payload = payload,
+ sig_header = sig_header,
+ secret = os.getenv('WEBHOOKS_SECRET')
38
)
39
# Validate the response is successful
40
print(response)
0 commit comments