Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/fastmcp/server/auth/providers/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ async def load_access_token(self, token: str) -> AccessToken | None:
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")
Expand Down
Loading