Repository navigation
fix(auth): add gmail readonly scope and fix drive readonly accumulation - #113
Merged
steipete merged 4 commits intoMar 3, 2026
Merged
Conversation
itsjeremyjohnson
referenced
this pull request
in Robben-Media/gogcli
Feb 16, 2026
cchiles
added a commit
to cchiles/gogcli
that referenced
this pull request
Feb 16, 2026
Contributor
|
Apologies this took a while to get to. Can you rebase off of current main and resubmit the PR? I'm up for merging if you can do that and everything passes CI tests. Thank you! |
salmonumbrella
force-pushed
the
fix/issue-111-drive-scope-readonly
branch
from
March 3, 2026 02:42
928ab5a to
7cf94cf
Compare
Contributor
Author
|
@visionik Rebased on main and all CI checks are green. |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
steipete
force-pushed
the
fix/issue-111-drive-scope-readonly
branch
from
March 3, 2026 03:58
7cf94cf to
8e0a609
Compare
Collaborator
|
Landed via temp rebase onto main.
Thanks @salmonumbrella! |
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.
Summary
--gmail-scope=readonlyflag for requestinggmail.readonlyscope instead ofgmail.modify(fixes feat(gmail): Add --gmail-scope=readonly option for gmail.readonly scope #110)--drive-scope=readonlygranting full access by disablinginclude_granted_scopesparameter when restricted scopes are requested (fixes bug(drive): --drive-scope=readonly still grants full read-write access #111)gmail readalias forgmail threadcommand for convenienceRoot Cause (Issue #111)
Google's OAuth
include_granted_scopes=trueparameter was causing previously granted scopes to be merged into new tokens, defeating the purpose of requesting restricted scopes likedrive.readonly.Test Plan
--gmail-scope=readonlyverifying correct scopes--drive-scope=readonlyverifyingDisableIncludeGrantedScopesis setgmail readaliasFixes #110
Fixes #111
🤖 Generated with Claude Code