fix: replace python-jose with PyJWT for robust JWKS signature verification
Some checks failed
CI / lint-and-test (push) Has been cancelled

python-jose failed to correctly construct RSA public keys from Microsoft
JWKS entries lacking an explicit alg field, causing signature verification
failures. Switch auth.py to PyJWT + jwt.algorithms.RSAAlgorithm.from_jwk()
which handles Entra JWKS correctly. Add cryptography explicitly to deps.
Update auth tests to remove unused python-jose fixture code.
This commit is contained in:
2026-04-14 16:47:54 +02:00
parent c22c637511
commit ed310a06de
3 changed files with 17 additions and 20 deletions

View File

@@ -4,7 +4,9 @@ pymongo
python-dotenv
requests
PyYAML
PyJWT
python-jose[cryptography]
cryptography
pydantic-settings
structlog
tenacity