Skip to content

Open the box's sign-in links in this machine's browser - #11

Merged
jcasimir merged 1 commit into
mainfrom
open-on-client
Nov 25, 2026
Merged

jcasimir merged 1 commit into
mainfrom
open-on-client

Conversation

@jcasimir

Copy link
Copy Markdown
Member

Copied out of tmux on the box, the Switchboard sign-in link was most likely cut at the line wrap (auth request is missing redirect_uri, reproduced with a cut link). Over ssh, work now reverse-forwards the box's localhost:3336 to a local opener, and the box's BROWSER helper (JumpstartLab/server-admin#282) posts the link to it.

  • Opens only https sign-in pages on our exact hosts and paths; rate limited; needs a custom header so local web pages can't use it.
  • Claude's own sign-in is excluded: its browser link returns to a random port that isn't forwarded.
  • No tunnel or a refused link: the helper fails and Claude shows the link as before. Not over et.

Run end to end against a throwaway box (real sshd, ssh -R, claude mcp login): the full link arrived with its redirect_uri. Not yet run from macOS. No release tag in this PR.

🤖 Generated with Claude Code

A Switchboard sign-in link copied out of the box's tmux lost its
redirect_uri. Over ssh, work now takes the link from the box's BROWSER
helper and opens it, if it is one of our sign-in pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jcasimir
jcasimir merged commit ba6221f into main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant