From 1c68a7fd1d9c197fe110e405fec814d4ecc8f79b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 19 Mar 2024 17:17:11 -0700 Subject: [PATCH] refactor(handle_jwt.py): print jwt version --- litellm/proxy/auth/handle_jwt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/handle_jwt.py b/litellm/proxy/auth/handle_jwt.py index 4c3c013c71..cc98eee093 100644 --- a/litellm/proxy/auth/handle_jwt.py +++ b/litellm/proxy/auth/handle_jwt.py @@ -8,6 +8,8 @@ JWT token must have 'litellm_proxy_admin' in scope. import httpx import jwt + +print(jwt.__version__) # noqa from jwt.algorithms import RSAAlgorithm import json import os @@ -74,7 +76,7 @@ class JWTHandler: return scopes async def auth_jwt(self, token: str) -> dict: - keys_url = os.getenv("OPENID_PUBLIC_KEY_URL") + keys_url = os.getenv("JWT_PUBLIC_KEY_URL") async with self.http_handler as http: response = await http.get(keys_url)