mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-13 22:02:38 +00:00
fix: replace python-jose with PyJWT for JWT handling
This commit migrates the authentication system from python-jose to PyJWT to eliminate the dependency on the archived rsa package. The migration includes: - Refactored OAuth2TokenAuthProvider to use PyJWT's PyJWKClient for clean JWKS handling - Removed manual JWKS fetching, caching and key extraction logic in favor of PyJWT's built-in functionality The new implementation is cleaner, more maintainable, and follows PyJWT best practices while maintaining full backward compatibility. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
ecc8a554d2
commit
7fa2bae3e2
4 changed files with 60 additions and 86 deletions
|
|
@ -34,7 +34,7 @@ dependencies = [
|
|||
"openai>=1.107", # for expires_after support
|
||||
"prompt-toolkit",
|
||||
"python-dotenv",
|
||||
"python-jose[cryptography]",
|
||||
"PyJWT>=2.8.0",
|
||||
"pydantic>=2.11.9",
|
||||
"rich",
|
||||
"starlette",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue