Skip to content

Auth login fails with "missing response_type" on Desktop OAuth client (v0.22.5, macOS) #695

@neilverma

Description

@neilverma

Body:

Environment

  • gws version: 0.22.5
  • OS: macOS (Darwin 25.1.0, Apple Silicon)
  • Node.js: v24.11.1
  • OAuth client type: Desktop app (created via Google Auth Platform console)
  • Google Workspace: Internal user type
  • Auth method tried: env vars (GOOGLE_WORKSPACE_CLI_CLIENT_ID +
    GOOGLE_WORKSPACE_CLI_CLIENT_SECRET) and client_secret.json

Steps to Reproduce

  1. Created a GCP project with OAuth consent screen (Internal)
  2. Created a Desktop app OAuth client via Google Auth Platform > Clients
  3. Set env vars and ran gws auth login
  4. Browser opens but Google returns an error immediately

Expected

Browser opens Google consent screen to authorize.

Actual

Browser shows "Access blocked: Authorization Error" with:

  • "Required parameter is missing: response_type"
  • Error 400: invalid_request

Screenshot

  • attached

    Notes

    • gcloud auth login works fine with the same Google account
    • The client_secret.json downloaded from the console is valid JSON in the correct
      {"installed": {...}} format
    • Tried both env var and file-based auth — same result
    • The OAuth URL that gws constructs appears to be missing the response_type=code
      parameter

Image

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