Skip to content

feat: service-account (headless) auth - #2

Merged
thorwhalen merged 1 commit into
masterfrom
feat/service-account-auth
Jun 19, 2026
Merged

thorwhalen merged 1 commit into
masterfrom
feat/service-account-auth

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

drive_from_service_account() + drive= injection on GDReader/GDStore for headless reads of shared folders. Read works on personal accounts; write needs Shared Drive/delegation/OAuth (SA storage-quota limit, documented). 3 mockable tests. Used by loomun (corpus read + app proxy).

drive_from_service_account(key_file, *, scopes, subject) builds a GoogleDrive from an SA key
(pydrive2 ServiceAuth); GDReader/GDStore gain a drive= param so a pre-authenticated client is
injected instead of the interactive OAuth flow. For server/headless reads of folders shared with
the SA. NOTE: on personal (non-Workspace) accounts an SA can READ shared files but cannot CREATE
files (no storage quota); writes need a Shared Drive, domain-wide delegation, or OAuth. 3 tests.

Claude-Session: https://claude.ai/code/session_01LUpTPcgooABkgUSNXD2Xjy
@thorwhalen
thorwhalen merged commit 43f8d77 into master Jun 19, 2026
6 checks passed
@thorwhalen
thorwhalen deleted the feat/service-account-auth branch June 19, 2026 18:20
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