Skip to content

Bundled trimble-connect OAuth client is a placeholder (AWARE_AECO_PLACEHOLDER_TRIMBLE_CLIENT_ID) — --oauth fails 'Unregistered client' #153

@pawellisowski

Description

@pawellisowski

Environment

Repro

aware connect trimble-connect --oauth

The browser opens to:

https://id.trimble.com/oauth/authorize?response_type=code
  &client_id=AWARE_AECO_PLACEHOLDER_TRIMBLE_CLIENT_ID
  &redirect_uri=http://localhost:7421/callback
  &scope=openid+profile+TrimbleConnect&code_challenge=...

Trimble responds:

{"error": "invalid_client", "error_description": "Unregistered client."}

Root cause

The bundled Trimble client_id is the literal placeholder string AWARE_AECO_PLACEHOLDER_TRIMBLE_CLIENT_ID, not a registered Trimble Identity OAuth client. #145 shipped real first-party clients for microsoft-365 and google-workspace (both connect end-to-end via --oauth), but trimble-connect was left as a placeholder, so its authorize request is rejected.

Impact

trimble-connect cannot be connected at all with the bundled app — neither --oauth (placeholder → Unregistered client) nor --device-code (Trimble doesn't support device-code; correctly rejected). The only path today is a BYO profile (#146) with the user's own registered Trimble client.

Ask

Ship a real registered Trimble Identity OAuth client for trimble-connect (as was done for M365/Google in #145), or — if a first-party Trimble app isn't available — make aware connect trimble-connect fail fast with a clear message ("no bundled Trimble app; configure a BYO profile, see #146") instead of sending a placeholder client_id to Trimble.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions