fix: resolve two bugs found during live testing
- Add garc_core.py (underscore) alongside garc-core.py (hyphen); Python cannot import a hyphenated filename as a module, causing ModuleNotFoundError on every garc command - Replace invalid scope people.readonly with directory.readonly in garc-core.py and scope-map.json; people.readonly does not exist in Google OAuth, causing error 400 invalid_scope on login Verified working: garc gmail profile, garc calendar today, garc gmail inbox, garc auth suggest Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4028c7f47a
commit
10bcf9b17a
3 changed files with 213 additions and 6 deletions
|
|
@ -222,7 +222,7 @@
|
|||
"read_contacts": {
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/contacts.readonly",
|
||||
"https://www.googleapis.com/auth/people.readonly"
|
||||
"https://www.googleapis.com/auth/directory.readonly"
|
||||
],
|
||||
"identity": "user_access_token",
|
||||
"gate": "none",
|
||||
|
|
@ -238,7 +238,7 @@
|
|||
},
|
||||
"search_people": {
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/people.readonly"
|
||||
"https://www.googleapis.com/auth/directory.readonly"
|
||||
],
|
||||
"identity": "user_access_token",
|
||||
"gate": "none",
|
||||
|
|
@ -364,7 +364,7 @@
|
|||
"https://www.googleapis.com/auth/calendar.readonly",
|
||||
"https://www.googleapis.com/auth/tasks.readonly",
|
||||
"https://www.googleapis.com/auth/contacts.readonly",
|
||||
"https://www.googleapis.com/auth/people.readonly"
|
||||
"https://www.googleapis.com/auth/directory.readonly"
|
||||
],
|
||||
"description": "Read-only access to all GWS resources"
|
||||
},
|
||||
|
|
@ -379,7 +379,7 @@
|
|||
"https://www.googleapis.com/auth/calendar",
|
||||
"https://www.googleapis.com/auth/tasks",
|
||||
"https://www.googleapis.com/auth/contacts.readonly",
|
||||
"https://www.googleapis.com/auth/people.readonly"
|
||||
"https://www.googleapis.com/auth/directory.readonly"
|
||||
],
|
||||
"description": "Write access to owned resources and send email"
|
||||
},
|
||||
|
|
@ -409,7 +409,7 @@
|
|||
"https://www.googleapis.com/auth/calendar",
|
||||
"https://www.googleapis.com/auth/tasks",
|
||||
"https://www.googleapis.com/auth/contacts.readonly",
|
||||
"https://www.googleapis.com/auth/people.readonly",
|
||||
"https://www.googleapis.com/auth/directory.readonly",
|
||||
"https://www.googleapis.com/auth/chat.messages"
|
||||
],
|
||||
"description": "Back-office automation profile for office-work agents"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue