You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): switch OAuth callback to plain HTTP localhost
Per RFC 8252 §7.3, OAuth providers (including Linear) treat
http://localhost as a special case that doesn't need TLS — the
connection never leaves the host. The previous self-signed-cert HTTPS
approach forced testers through a "connection not private" warning that
scared them off mid-setup.
Drops the openssl shell-out + temp-cert plumbing (~60 lines) along with
the user-facing warning copy in `bgagent linear setup`. Updates the
callback constants to http://localhost:8080/oauth/callback and the test
suite to plain http.GET.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
<body><h1>✗ Authorization not captured</h1><p>The callback URL did not include a session_id. Re-run <code>bgagent linear setup</code> and try again.</p></body></html>`;
47
51
48
-
/**
49
-
* Generate a self-signed cert + key pair for localhost using openssl.
50
-
*
51
-
* The cert is created in a temp dir and removed on close; the user's
52
-
* browser will warn ("connection not private") on the redirect because
53
-
* it's self-signed. This is acceptable: the cert is only used between
54
-
* the user's browser and `localhost`, never traverses the network.
55
-
*
56
-
* Why openssl shell-out instead of node-forge or selfsigned: avoids a
57
-
* runtime dependency for a one-off setup-time operation. openssl ships
58
-
* with macOS and most Linux distros; if it's missing, fail loudly with
59
-
* a remediation hint rather than silently falling back.
0 commit comments