add azp claim (#1945)

Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
This commit is contained in:
Roee Hershko 2025-10-14 22:00:28 +03:00 committed by GitHub
commit 541822f07f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -382,7 +382,12 @@ class JWTVerifier(TokenVerifier):
claims = self.jwt.decode(token, verification_key)
# Extract client ID early for logging
client_id = claims.get("client_id") or claims.get("sub") or "unknown"
client_id = (
claims.get("client_id")
or claims.get("azp")
or claims.get("sub")
or "unknown"
)
# Validate expiration
exp = claims.get("exp")