mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
add azp claim (#1945)
Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
This commit is contained in:
parent
5d195878c4
commit
541822f07f
1 changed files with 6 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue