Repository navigation
LTRAC-638: feat(cli) - Look up the OAuth client ID from the CLI API - #3362
Open
jordanarldt wants to merge 1 commit into
Open
jordanarldt wants to merge 1 commit into
jordanarldt wants to merge 1 commit into
Conversation
Resolve the device-flow client ID from the CLI API's /.well-known/catalyst-cli.json before browser login, so installed versions keep working if the client ID is rotated. Falls back to the bundled ID when the lookup fails or times out. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: e8196c0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
jordanarldt
marked this pull request as ready for review
December 1, 2026 18:41
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO:
DEVICE_OAUTH_CLIENT_IDis passed appropriately from the CLI APIWhat/Why?
The CLI hardcodes the OAuth client ID it uses for browser (device-code) login. When that ID was rotated earlier this year, every installed version stopped being able to log in until a patch shipped (#2998).
This change makes the CLI look the client ID up before logging in:
GET {cli-api-origin}/.well-known/catalyst-cli.jsonand uses theclient_idit returns for both the device-code request and the token poll.client_id), the CLI silently uses the client ID bundled with the release, which is the behaviour today. This means the change is safe to release before the endpoint is live.--cli-api-originoption is now a shared option factory and is also accepted byauth loginandprojects create, so every login path can target a non-production CLI API.Expected response body (extra keys are ignored):
{ "client_id": "<id>" }Fixes #2998
Testing
pnpm test,pnpm typecheck,pnpm lintandpnpm buildpass inpackages/catalyst.Migration
None.
🤖 Generated with Claude Code