Summary
gws auth login generated an OAuth consent URL that failed at Google consent with:
Error 403: restricted_client
- message indicating unregistered/restricted scopes in request.
Repro
Then open generated URL in browser.
Requested scopes included:
- drive
- spreadsheets
- gmail.modify
- calendar
- documents
- presentations
- tasks
- pubsub
- cloud-platform
Actual
- Browser consent fails before auth completes.
- CLI has no built-in remediation guidance when this happens.
Expected
- First-run flow should either:
- succeed with a known-good auth profile, or
- fail with precise next steps (client setup, required scopes, consent screen requirements).
Suggestions
- Add scope profiles (minimal/default/full), with minimal as default.
- On
restricted_client, detect this class of failure and print targeted guidance:
- likely cause
- exact setup steps
- link to docs
- Consider reducing default requested scopes to avoid unnecessary first-run failures.