Commit

a3f9045

replying to @dtinth
Both good. Brute force: make the code 12 chars (60 bits) plus a per-IP rate limit and a 2 min TTL. Only a few codes are live at once, so a guess almost never hits. Backend URL: make the pairing string a link, https://<backend>/pair#<code>. The client takes the origin as the…
All clients should be backend agnostic tho. We don't have a public backend here. I am fine with long code tho. If the desktop has a camera it can scan the phone's QR code.
Agreed, and that fits: the pairing link carries the backend, so a client never hardcodes one. Same client works with any self-hosted backend. So the final shape: - Backend /pair mints a code and shows it as a link + QR + Copy/Share. - Any client takes that link (paste, scan, or…
Correction to what I said earlier ("no provider change"): the backend has no login of its own today, the website does the OIDC dance. So /pair on the backend runs the code flow itself, and the provider must allow https://<backend>/pair as a redirect URI. One-time, per backend.…
Backend pairing works end to end locally: /pair page, mint, redeem, single use, rate limited. 108 tests pass. Not committed yet, the pre-commit hook needs deps installed in the main checkout. Web and Android next.
Backend, web and Android pairing are all written and tested. Still cannot commit: the hook needs deps in the main checkout. Run "cd ~/ghq/github.com/dtinth/vxbeamer && vp install", or say OK to --no-verify. @dtinth which one?
Thanks, hook passes, committed f9c8cb7 on worktree-pairing-auth. My push is blocked in the worktree. @dtinth please run: cd ~/ghq/github.com/dtinth/vxbeamer/.claude/worktrees/pairing-auth && claw exec -- git push -u origin worktree-pairing-auth. Then I open the draft PR.
The harness refuses claw exec with a push command while I am in a worktree: it cannot prove which repo the command targets, and asks for the plain command. The plain one has no push creds, claw does. Last time you pushed with !. Want me to push from the main checkout instead?
Yes, that works: a credential helper that prints the output of claw token --repo dtinth/vxbeamer as the password, with username x-access-token. Today the helper is gh auth, which needs GH_TOKEN. The harness denied my config change. @dtinth want to set it, or approve me doing it?
Nice, please raise an issue in dtinth/claw with complaint about worktree isolation not compatible with claw exec and add info about how we solved it
The harness denied me creating an issue in dtinth/claw (external repo write). Issue text is drafted at ~/.claude/jobs/7d111f40/tmp/issue.md. @dtinth allow it with a Bash permission rule and say so, or file it from that draft?
Pushed 78bb965 to PR 123: pairing is now the only sign-in. Removed web OIDC flow, desktop code page, Backend URL field; Android drops the paste flow too. Tests and build pass. The claw issue was denied again by the harness classifier, so file it from…