From b5597998022e7aa0edcfcc5725672d2ce34244b7 Mon Sep 17 00:00:00 2001 From: dvirlabs <114520947+dvirlabs@users.noreply.github.com> Date: Thu, 14 May 2026 18:44:03 +0300 Subject: [PATCH] Fix SSL handshake in Google OAuth callback: use httpx native certificate handling instead of custom SSL context --- backend/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/main.py b/backend/main.py index 3dda3f2..f597a99 100644 --- a/backend/main.py +++ b/backend/main.py @@ -17,7 +17,6 @@ import shutil from pathlib import Path from dotenv import load_dotenv import httpx -import ssl import certifi from urllib.parse import urlencode, quote from datetime import timezone, timedelta @@ -1134,8 +1133,7 @@ async def google_callback( raise HTTPException(status_code=500, detail="Google OAuth credentials not configured") try: - ssl_ctx = ssl.create_default_context(cafile=certifi.where()) - async with httpx.AsyncClient(verify=ssl_ctx) as client_http: + async with httpx.AsyncClient(verify=certifi.where()) as client_http: # Exchange authorization code for access token token_url = "https://oauth2.googleapis.com/token"