f64ca1188898748431d582e57bcdfa6be91a950c
Refactor _pending_scout_oauth_states from a tuple to a dict carrying mode (reconnect|create), draft fields, and a transient encrypted token. Add authorize-draft, session-labels, and cloud/finalize endpoints so the scout row is created only when the flow completes — abandoned flows leave no orphan rows. Zero-trust: the encrypted token lives only in the in-memory session (<=15 min) until finalize persists it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
DEV
Run in DEV with command:
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --log-config logging.conf
Description
Languages
Python
99.8%
Dockerfile
0.1%