Repository navigation
Default CLI login to org SSO; drop the --workos vendor flag - #177
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
PR Summary by QodoDefault kcap login/setup to org SSO; remove user-facing --workos flag Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo
1.
|
…etup help Addresses Qodo review on #177: - help-login.txt + README: discovery falls back to GitHub Device Flow in SSH/headless environments (SSO needs a local browser) — docs previously implied SSO unconditionally - help-setup.txt: document --github (now the only way to pick GitHub in setup after the interactive picker was removed) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
What & why
kcap login/kcap setupexposed the auth vendor to users via the--workosflag. Vendor naming shouldn't leak into the user-facing CLI. New model: org SSO is the default sign-in; GitHub is the explicit opt-in via--github.Changes
OAuthLoginFlow.ChooseDiscoveryProvidernow returns a concrete provider (no nullable "prompt" signal):--github→ GitHub App; no-flag interactive → org SSO (WorkOS); no-flag headless → GitHub device flow (WorkOS needs a browser loopback).--workosis no longer recognized.DiscoveryProviderPromptpicker;login(Program.cs) andsetup(SetupCommand.cs) resolve the provider directly.help-login.txt+README.md: usage[--discover] [--github] [--device], SSO-by-default wording,--workosremoved, gratuitous "WorkOS" naming scrubbed (internalAuthProvider.WorkOSprotocol constant kept).Backward-compatible: a stale
--workosis now a harmless no-op (interactive callers still land on the SSO default).Tests
ChooseDiscoveryProvider_honors_flags_and_defaultupdated to the new contract.dotnet publish -c ReleaseIL-clean,kcap login --helpshows no--workos.Spec:
docs/superpowers/specs/2026-06-25-login-default-workos-design.md· Plan:docs/superpowers/plans/2026-06-25-login-default-workos.md🤖 Generated with Claude Code