From d1916b0a036a803d8b74cdf4a74ca29b5bc537b9 Mon Sep 17 00:00:00 2001 From: yongtenglei Date: Tue, 2 Dec 2025 11:18:48 +0800 Subject: [PATCH] minor fix for google auth --- api/apps/connector_app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/apps/connector_app.py b/api/apps/connector_app.py index 49d8005a6..44d3a3344 100644 --- a/api/apps/connector_app.py +++ b/api/apps/connector_app.py @@ -168,10 +168,12 @@ async def _render_web_oauth_popup(flow_id: str, success: bool, message: str, sou status = "success" if success else "error" auto_close = "window.close();" if success else "" escaped_message = escape(message) + # Drive: ragflow-google-drive-oauth + # Gmail: ragflow-gmail-oauth + payload_type = f"ragflow-{source}-oauth" payload_json = json.dumps( { - # TODO(google-oauth): include connector type (drive/gmail) in payload type if needed - "type": f"ragflow-google-{source}-oauth", + "type": payload_type, "status": status, "flowId": flow_id or "", "message": message,