Repository navigation
Description
Summary
The Sign in with SSO step (/log-in?method=sso) treats a pending or failed read of the SSO organization list as "no organizations". It then states, in an alert:
No organizations are available for sign-in. Contact your administrator.
- While loading: the alert renders and, being
role="alert", is announced until the list arrives. This happens whenever the step opens without a cached list, for example on a reload or a deep link. - After a failed read: the alert stays. There is no Try again, and the person is told to contact an administrator about a configuration that is fine.
This is the sign-in page, where SSO users have no other way in.
Source
origin/main3bc0b32225337301082a0c1291cf6f4a287adcce.- This is a deterministic code path, read statically. No running stack was used: Review A has no stack reservation this occurrence.
- The branch dates from feat(platform): require manual org pick for multi-org SSO sign-in #2489 (
847f871e3).
In services/platform/app/routes/_auth/log-in.tsx:
- Line 132:
const { data: selectableOrgs } = useSsoSelectableOrgs();.isLoading,isErrorandrefetchare not read.useSsoSelectableOrgsis a plainuseQuery(ssoSelectableQuery())(app/features/auth/hooks/queries.ts:28–30), and the route has no loader that prefetches it. - Lines 423–438:
selectableOrgs && selectableOrgs.length > 0 ? <SsoOrgPicker …/> : <p role="alert">{t('login.ssoNoOrganizations')}</p>.undefined(pending or failed) takes the "none available" branch. - Not tested:
log-in-sso-email-prompt.test.tsx:149covers "no organizations available" with a fixed mock value, and nothing covers pending or failed.
The same text ships in German ("Keine Organisation für die Anmeldung verfügbar. Wende dich an deine Administration.") and French ("Aucune organisation disponible pour la connexion. Contacte ton administration.").
Same class, noted but not traced to the end: routes/setup.tsx:28–48 starts the first-run owner wizard whenever useHasAnyUsers isn't true, which includes a failed read. On an install that already has users, a failed read there opens the first-run wizard. I didn't follow how the owner creation is then refused.
Dedupe: I scanned 294 open items (129 PRs); none covers this.
Reproduction (expected from the code; not run live)
- On a multi-organization deployment with SSO enabled, open
/log-in?method=ssodirectly (reload or deep link). - While
ssoSelectableQueryis pending, the alert above shows and is announced. - Make that read fail (offline after the page loads, or a server error). The alert stays, with no way to retry except reloading.
Expected
- Pending: a loading state, with no alert.
- Failed: say the organization list couldn't load, and offer Try again (refetch). Don't tell the person to contact an administrator.
- Empty: the current message only after a successful read that returned no organizations.
Regression expectation
Extend log-in-sso-email-prompt.test.tsx:
- with
useSsoSelectableOrgspending, there's nologin.ssoNoOrganizationsalert; - failed shows a load-failure message with Try again, which refetches;
- a successful empty list keeps the current message.
Triage
- Severity: low. It needs a cold or failed read, but it is on the sign-in path, and the loading flash is announced to screen-reader users.
- Owner: the platform owner of authentication and SSO sign-in.
- Review A cells:
auth.loginUX-CLARITY and REL-MANUAL. Found by Review A (TALE-358) at the 2026-10-09 04:15 Europe/Zurich occurrence, in the overdue critical UX-CLARITY slice. - Related, same class: bug(platform): a shared chat link that fails to load says the chat is "no longer available", with no retry #4535, bug(platform): document version history that fails to load is a dead end: no next step and no Try again #4577, bug(platform): API key owner pickers say no member, team or project qualifies while the list loads or after it fails to load #4586, bug(platform): a task page whose read fails says "Page not found" instead of offering Try again #4587, bug(platform): project metrics show zero activity and "No data" when the metrics read fails #4588 and bug(platform): a failed project list read marks every Project budget rule "Deleted project" and says to remove it #4605.
Activity
yannickmonney commentedon Oct 9, 2026
Follow-up: the
/setuppath noted above, now traced (main3bc0b3222, static).On an install that already has users, a failed
useHasAnyUsersread (routes/setup.tsx:28–48) opens the first-run wizard. Its account step callsauthClient.signUp.email(features/organization/components/onboarding/steps/account-step.tsx:82–96).The backend's sign-up gate refuses with
SIGN_UP_CLOSED_MESSAGE(backend/auth/sign-up-gate.ts): "Sign-up is closed on this deployment; an administrator creates accounts." The step shows that English sentence as the password field's error, with a fallback of "Wrong email or password" when no message comes back.So the person isn't sent to sign in. They see an English refusal under the password field of a setup they shouldn't be in. The fix direction for
/setupis the same as for the SSO step: a failed read isn't "no users". Retry, or route to sign-in, rather than starting first-run setup.fix(platform): tell failed SSO and setup reads apart from answers
fix(platform): tell failed SSO and setup reads apart from answers
fix(platform): tell failed SSO and setup reads apart from answers
fix(platform): tell failed SSO and setup reads apart from answers
docs: amend the v0.5.95 release notes
docs: amend the v0.5.95 release notes