something
This commit is contained in:
@@ -54,6 +54,11 @@ def healthz():
|
||||
def ipn():
|
||||
# 1. Get the signature from the 'Verification-Token' header
|
||||
token = request.headers.get('Verification-Token')
|
||||
|
||||
if token:
|
||||
# This ignores the signature completely just so we can see what's inside
|
||||
raw_data = jwt.decode(token, options={"verify_signature": False})
|
||||
app.logger.info(f"UNVERIFIED JWT CONTENT: {raw_data}")
|
||||
|
||||
# 2. If it exists, inject it into the location the SDK expects
|
||||
if token:
|
||||
|
||||
Reference in New Issue
Block a user