Pause Google one-click connect pending CASA verification

Gmail/Calendar/Drive show a disabled Coming-soon button; the server refuses the flow too.
Manual token connect and already-connected accounts are untouched.
This commit is contained in:
Rohit C Prasad
2026-07-23 07:43:24 -07:00
committed by Rohit P
parent 71b0df8ea2
commit 2a2fffd280
11 changed files with 159 additions and 13 deletions
+8
View File
@@ -968,7 +968,15 @@ def create_app(manager: SessionManager) -> FastAPI:
from .. import cloud
from ..config import load_config
from ..connectors.descriptors import get_descriptor
d = get_descriptor(name)
if d is not None and d.managed_paused:
# GUI shows the Coming-soon state; this guard covers stale GUIs/API callers.
return {
"ok": False,
"error": f"one-click connect for {d.title} is coming soon — connect manually for now",
}
access = str((body or {}).get("access") or "")
flow = str((body or {}).get("flow") or "") # github: "" install | "authorize"
out = await asyncio.to_thread(