Skip to content

connect google and read drive as a nested files collection - #81

Merged
hkonsti merged 6 commits into
hkonsti/google-1-token-sessionfrom
hkonsti/google-2-oauth-drive
Oct 15, 2026
Merged

hkonsti merged 6 commits into
hkonsti/google-1-token-sessionfrom
hkonsti/google-2-oauth-drive

Conversation

@hkonsti

@hkonsti hkonsti commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the google integration: one sign-in with the app's own Google client (the one Google sign-in already uses) that asks for every scope at once, stores the tokens, the granted scopes and the address encrypted, and reconnects the same account on a second sign-in. Drive becomes the read-only files collection, a tree with My Drive, Shared with me, Shared drives and Recent at the top, where documents open as Markdown, presentations as text, and spreadsheets open into their tabs and rows as "Header: value" lines. Google's errors are mapped for agents: a disabled API passes Google's own message naming the API to enable, and exports over Google's 10 MB cap say so. The OAuth routes the MCP integrations used are lifted into connections/connect-flow.ts, which both share now. The OAuth flow is covered by tests with mocked Google answers and still needs one manual run against a real Cloud project.

Stack: 2 of 3 for the Google Workspace connector, on #78; next: scope enforcement.


Open workspace in Conductor

@hkonsti
hkonsti added this pull request to stack #88 October 13, 2026 21:06
@hkonsti
hkonsti force-pushed the hkonsti/google-2-oauth-drive branch 3 times, most recently from 77ea3e5 to 9757fc1 Compare October 14, 2026 17:29
…ccount can't see as shared with me, list only opened files in recent, keep google's reason for a token error, refuse unverified addresses, and don't say a connection signed in to again was added
…count, so it is renewed, and takes the new address, after the address changed
…ot found without asking sheets, which refuses a range outside the grid, keep the pkce helper and the sign-in answer to connect-flow, and say what drive does on this branch
@hkonsti
hkonsti force-pushed the hkonsti/google-2-oauth-drive branch from 9f0180e to 0c0e353 Compare October 15, 2026 00:20
@hkonsti
hkonsti merged commit 51093a7 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant