mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-05 00:56:40 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user