update
This commit is contained in:
parent
9e904c254a
commit
d2ef9099a7
1 changed files with 7 additions and 7 deletions
|
|
@ -348,14 +348,14 @@ async def webhook(agent_id: str):
|
||||||
if isinstance(c, str) and c.strip()
|
if isinstance(c, str) and c.strip()
|
||||||
]
|
]
|
||||||
|
|
||||||
# RESERVED_CLAIMS = {"exp", "sub", "aud", "iss", "nbf", "iat"}
|
RESERVED_CLAIMS = {"exp", "sub", "aud", "iss", "nbf", "iat"}
|
||||||
# for claim in required_claims:
|
for claim in required_claims:
|
||||||
# if claim in RESERVED_CLAIMS:
|
if claim in RESERVED_CLAIMS:
|
||||||
# raise Exception(f"Reserved JWT claim cannot be required: {claim}")
|
raise Exception(f"Reserved JWT claim cannot be required: {claim}")
|
||||||
|
|
||||||
# for claim in required_claims:
|
for claim in required_claims:
|
||||||
# if claim not in decoded:
|
if claim not in decoded:
|
||||||
# raise Exception(f"Missing JWT claim: {claim}")
|
raise Exception(f"Missing JWT claim: {claim}")
|
||||||
|
|
||||||
return decoded
|
return decoded
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue