Skip to content

feat(platform): require manual org pick for multi-org SSO sign-in - #2489

Merged
larryro merged 4 commits into
mainfrom
cursor/sso-org-picker-manual-selection
Jul 5, 2026
Merged

larryro merged 4 commits into
mainfrom
cursor/sso-org-picker-manual-selection

Conversation

@larryro

@larryro larryro commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Multi-org deployments now always show an organization picker on Continue with SSO instead of routing by email domain, avoiding conflicts when two orgs share the same domain.
  • Single-org deployments keep the direct IdP redirect.
  • Removed the admin Email domain field from the Enterprise SSO form; the schema field is deprecated but retained for existing configs.
  • Added a polished org picker UI with protocol labels, onboarding-style header chrome, and pointer cursor on list rows.

Test plan

  • Unit tests: SSO login org picker, back button, listSelectable, admin form (no domain field)
  • Manual browser E2E on localhost:3000/log-in?method=sso — org list renders, back returns to credential login, org click redirects to IdP with organizationId
  • CI green

Definition of done

  • Green gate — platform unit tests for touched areas pass locally
  • Security gate — pre-commit SAST clean on commit
  • Tests — happy path, multi-org list, empty list, back navigation
  • Migration — N/A (org config field deprecated, not removed)
  • Locales — en/de/fr updated
  • Docs — enterprise-sso admin docs updated (en/de/fr)
  • Accessibility — listbox/option roles, labelled list, keyboard-focusable rows
  • Sweep — login UI, admin form, backend queries, discover/authorize handlers, schema
  • Observed — browser verification on local multi-org SSO stack
  • Commits — single atomic commit on cursor/sso-org-picker-manual-selection

larryro added 4 commits July 5, 2026 06:33
Replace email-domain routing with an org picker when several SSO connections
are enabled, deprecate the admin email-domain field, and polish the picker UI.
Add aria-selected on listbox options and stop spreading window.location
in the SSO login test location mock.
The chat-picker test toggled the visibility switch only when it was
unchecked, then always clicked Save. Blank agents are created with
visibleInChat: true, so the switch loads checked, the toggle is skipped,
and Save stays disabled on the pristine form — the click timed out
deterministically. Assert the switch is checked (the created state, which
also waits out config hydration) instead of saving with no change.
The chat picker renders external agents with a "Sandbox" badge and a
"View agent details" link, so the option's accessible name is
"<display name> Sandbox View agent details". The exact-name locator never
matched, so selecting the Cursor agent timed out. Match the (unique)
display name by substring instead.
@larryro
larryro merged commit 847f871 into main Jul 5, 2026
51 checks passed
@larryro
larryro deleted the cursor/sso-org-picker-manual-selection branch July 5, 2026 01:01
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