-
Notifications
You must be signed in to change notification settings - Fork 1.2k
auth login -s people does not include contacts write scope #673
Copy link
Copy link
Open
Description
Description
When using gws auth login -s people, the scope picker generates People API scopes for reading profiles, but does not include https://www.googleapis.com/auth/contacts which is required for write operations like createContact.
Steps to reproduce
gws auth login -s people- Approve scopes in browser
gws people people createContact --json '{"names":[{"givenName":"Test","familyName":"Contact"}]}'
Expected: Contact is created.
Actual: 403 - Request had insufficient authentication scopes.
Workaround attempted
--scopes https://www.googleapis.com/auth/contactsworks alone but cannot be combined with-sto get other service scopes in the same login.--fulldoes not include the contacts scope either.- Combining multiple full scope URLs in
--scopescauses truncation in the OAuth redirect URL, resulting ininvalid_scopeerrors.
Current workaround
Using curl directly with the People API and a dedicated refresh token obtained from a contacts-only gws auth login --scopes https://www.googleapis.com/auth/contacts.
Suggested fix
- Map
-s people(or add-s contacts) to includehttps://www.googleapis.com/auth/contactsin the scope picker. - Support incremental auth (adding scopes to an existing token without replacing it).
Environment
- gws 0.22.5
- macOS (Apple Silicon)
- OAuth app in production mode (not testing)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels