Skip to content

people service does not request contacts OAuth scope during auth login #310

@nael-osman

Description

@nael-osman

Description

When running gws auth login -s people (or including people in the services list), the resulting OAuth token does not include the https://www.googleapis.com/auth/contacts scope. This means all People API calls that require the contacts scope fail with a 403 "insufficient authentication scopes" error.

Steps to Reproduce

  1. gws auth login -s gmail,calendar,drive,docs,sheets,tasks,people
  2. Approve all scopes in the consent screen
  3. gws auth status — no contacts scope in the token
  4. gws people people connections list --params '{"resourceName": "people/me", "personFields": "names"}' — returns 403

Expected Behavior

The people service should map to https://www.googleapis.com/auth/contacts (or contacts.readonly) during auth, so that People API calls work after authentication.

Environment

  • gws version: 0.8.0
  • Account type: personal @gmail.com
  • OAuth app: unverified (testing mode), People API enabled in Cloud Console, contacts scope added to consent screen

Workaround Attempted

  • Adding the contacts scope to the OAuth consent screen in Google Cloud Console — does not help because gws does not include it in the OAuth authorization URL
  • Passing the raw scope URL (https://www.googleapis.com/auth/contacts) to -sgws ignores it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions