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

This commit is contained in:
G30 authored and GitHub committed 2026-07-23 21:54:59 -04:00
1 parent 4fca375ad4
commit 4f823774ab
4 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -16,7 +16,6 @@ from typing import Literal, Optional
import aiohttp import aiohttp
from authlib.integrations.starlette_client import OAuth from authlib.integrations.starlette_client import OAuth
from authlib.jose.errors import BadSignatureError
from authlib.oauth2.rfc6749.errors import OAuth2Error from authlib.oauth2.rfc6749.errors import OAuth2Error
from authlib.oidc.core import UserInfo from authlib.oidc.core import UserInfo
from cryptography.fernet import Fernet from cryptography.fernet import Fernet
@@ -24,6 +23,7 @@ from fastapi import (
HTTPException, HTTPException,
status, status,
) )
from joserfc.errors import BadSignatureError
from joserfc.jws import JWSRegistry from joserfc.jws import JWSRegistry
from joserfc.registry import HeaderParameter from joserfc.registry import HeaderParameter
from mcp.shared.auth import ( from mcp.shared.auth import (
+1
View File
@@ -14,6 +14,7 @@ bcrypt==5.0.0
argon2-cffi==25.1.0 argon2-cffi==25.1.0
PyJWT[crypto]==2.13.0 PyJWT[crypto]==2.13.0
authlib==1.7.2 authlib==1.7.2
joserfc==1.7.4
requests==2.34.2 requests==2.34.2
aiohttp==3.13.5 # do not update to 3.13.3 - broken 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 argon2-cffi==25.1.0
PyJWT[crypto]==2.13.0 PyJWT[crypto]==2.13.0
authlib==1.7.2 authlib==1.7.2
joserfc==1.7.4
requests==2.34.2 requests==2.34.2
aiohttp==3.13.5 # do not update to 3.13.3 - broken 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", "argon2-cffi==25.1.0",
"PyJWT[crypto]==2.13.0", "PyJWT[crypto]==2.13.0",
"authlib==1.7.2", "authlib==1.7.2",
"joserfc==1.7.4",
"requests==2.34.2", "requests==2.34.2",
"aiohttp==3.13.5", # do not update to 3.13.3 - broken "aiohttp==3.13.5", # do not update to 3.13.3 - broken