fix: use PROXY_URL for Telegram OIDC JWKS requests (#2866)

This commit is contained in:
Dmitry V. Lunin
2026-04-15 03:08:06 +03:00
committed by GitHub
parent d35a8bb74c
commit 94da3c35b0
+2 -1
View File
@@ -195,7 +195,8 @@ async def _get_jwks(force: bool = False) -> dict[str, Any]:
if not force and _jwks_cache and _jwks_cache_expiry and now < _jwks_cache_expiry:
return _jwks_cache
async with httpx.AsyncClient(timeout=10) as client:
proxy = settings.PROXY_URL if hasattr(settings, "PROXY_URL") and settings.PROXY_URL else None
async with httpx.AsyncClient(timeout=10, proxy=proxy) as client:
response = await client.get(_JWKS_URL)
response.raise_for_status()
_jwks_cache = response.json()