From d2ef9099a7c76eec3f0995c1c6cc29cabb9237b7 Mon Sep 17 00:00:00 2001 From: buua436 Date: Mon, 15 Dec 2025 13:31:58 +0800 Subject: [PATCH] update --- api/apps/sdk/agents.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/apps/sdk/agents.py b/api/apps/sdk/agents.py index a3426c399..fc589a6df 100644 --- a/api/apps/sdk/agents.py +++ b/api/apps/sdk/agents.py @@ -348,14 +348,14 @@ async def webhook(agent_id: str): if isinstance(c, str) and c.strip() ] - # RESERVED_CLAIMS = {"exp", "sub", "aud", "iss", "nbf", "iat"} - # for claim in required_claims: - # if claim in RESERVED_CLAIMS: - # raise Exception(f"Reserved JWT claim cannot be required: {claim}") + RESERVED_CLAIMS = {"exp", "sub", "aud", "iss", "nbf", "iat"} + for claim in required_claims: + if claim in RESERVED_CLAIMS: + raise Exception(f"Reserved JWT claim cannot be required: {claim}") - # for claim in required_claims: - # if claim not in decoded: - # raise Exception(f"Missing JWT claim: {claim}") + for claim in required_claims: + if claim not in decoded: + raise Exception(f"Missing JWT claim: {claim}") return decoded