Skip to content

fix: sign in with the session-token login unless LIGHTNING_CLI_OIDC_LOGIN is set - #227

Merged
ethanwharris merged 1 commit into
mainfrom
ethanwharris/revert-oidc-login
Nov 3, 2026
Merged

ethanwharris merged 1 commit into
mainfrom
ethanwharris/revert-oidc-login

Conversation

@ethanwharris

Copy link
Copy Markdown
Member

Fixes CLI login, putting the new OIDC stuff behind an env var for testing.

Agent

#221 switched lightning login to the authorization-code login, which opens /oidc/authorize. The control plane only serves that with GRID_AUTH_CLI_LOGIN_ENABLED, which production doesn't set yet, so on v2026.11.02 lightning login lands on the web app's 404 page.

lightning login goes back to the v2026.10.27 session-token login by default. LIGHTNING_CLI_OIDC_LOGIN=1 opts in to the authorization-code login, and to --no-browser, for testing against an environment that serves it. --no-browser is hidden from help and refused without the opt-in, before any saved credentials are cleared. The README and CLI docs no longer mention it.

…IDC_LOGIN is set

#221 switched `lightning login` to the authorization-code login, which
opens /oidc/authorize. The control plane only serves that with
GRID_AUTH_CLI_LOGIN_ENABLED, which production doesn't set yet, so on
v2026.11.02 `lightning login` lands on the web app's 404 page.

`lightning login` goes back to the v2026.10.27 session-token login by
default. LIGHTNING_CLI_OIDC_LOGIN=1 opts in to the authorization-code
login, and to `--no-browser`, for testing against an environment that
serves it. `--no-browser` is hidden from help and refused without the
opt-in, before any saved credentials are cleared. The README and CLI docs
no longer mention it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Harness: claude-code
@ethanwharris ethanwharris changed the title fix(cli): sign in with the session-token login unless LIGHTNING_CLI_OIDC_LOGIN is set fix: sign in with the session-token login unless LIGHTNING_CLI_OIDC_LOGIN is set Nov 3, 2026
@ethanwharris
ethanwharris merged commit f4ec7c4 into main Nov 3, 2026
24 checks passed
@ethanwharris
ethanwharris deleted the ethanwharris/revert-oidc-login branch November 3, 2026 10:22
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.

3 participants