fix: migrate deprecated authlib.jose import to joserfc in oauth utils (#27310)

This commit is contained in:
G30
2026-07-23 21:54:59 -04:00
committed by GitHub
parent 4fca375ad4
commit 4f823774ab
4 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,6 @@ from typing import Literal, Optional
import aiohttp
from authlib.integrations.starlette_client import OAuth
from authlib.jose.errors import BadSignatureError
from authlib.oauth2.rfc6749.errors import OAuth2Error
from authlib.oidc.core import UserInfo
from cryptography.fernet import Fernet
@@ -24,6 +23,7 @@ from fastapi import (
HTTPException,
status,
)
from joserfc.errors import BadSignatureError
from joserfc.jws import JWSRegistry
from joserfc.registry import HeaderParameter
from mcp.shared.auth import (
+1
View File
@@ -14,6 +14,7 @@ bcrypt==5.0.0
argon2-cffi==25.1.0
PyJWT[crypto]==2.13.0
authlib==1.7.2
joserfc==1.7.4
requests==2.34.2
aiohttp==3.13.5 # do not update to 3.13.3 - broken
+1
View File
@@ -11,6 +11,7 @@ bcrypt==5.0.0
argon2-cffi==25.1.0
PyJWT[crypto]==2.13.0
authlib==1.7.2
joserfc==1.7.4
requests==2.34.2
aiohttp==3.13.5 # do not update to 3.13.3 - broken
+1
View File
@@ -19,6 +19,7 @@ dependencies = [
"argon2-cffi==25.1.0",
"PyJWT[crypto]==2.13.0",
"authlib==1.7.2",
"joserfc==1.7.4",
"requests==2.34.2",
"aiohttp==3.13.5", # do not update to 3.13.3 - broken