mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-14 07:05:10 +00:00
Merge pull request #2762 from jacobnguyenn/update-jwt-auth
fix: still verify kid on single pub key fetched
This commit is contained in:
@@ -114,7 +114,8 @@ class JWTHandler:
|
||||
public_key: Optional[dict] = None
|
||||
|
||||
if len(keys) == 1:
|
||||
public_key = keys[0]
|
||||
if kid is None or key["kid"] == kid:
|
||||
public_key = keys[0]
|
||||
elif len(keys) > 1:
|
||||
for key in keys:
|
||||
if kid is not None and key["kid"] == kid:
|
||||
|
||||
Reference in New Issue
Block a user