Repository navigation
feat: service-account (headless) auth - #2
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).