Skip to content

SSO end-user UX: every refusal says "the sign-in link expired", internal terms reach end users, a refused IdP-initiated sign-in is silent, and Log out leaves the IdP session so the next click signs straight back in #32087

Closed

Description

@os-bob

Edition / version

ObjectOS Enterprise, cloud main de8d979 (framework pin e24136c2). Live Okta (OIDC and SAML), browser walk-through for objectstack-ai/cloud#3666.

Findings, in the order a user meets them

  1. "Sign in with SSO" with an empty email shows the raw email, organizationSlug, domain or providerId is required. It should say "Enter your work email to sign in with SSO" (the button reads the password form's email field).
  2. Every SSO refusal starts with the wrong sentence. The login page shows "Single sign-on could not be completed — the sign-in link expired or was already used. Please try again." followed by the cause in parentheses, for:
    • SELF_REGISTRATION_CLOSED (uninvited user, JIT off): the cause text is right but aimed at admins: "(audience posture invite_only) … turn on just-in-time provisioning (allowJit)";
    • account_not_linked;
    • saml_error / Invalid SAML response (certificate mismatch);
    • state_not_found.
      None of these is an expired link, and "try again" only repeats the refusal. Expected: a per-cause sentence for the end user ("Your account isn't set up for this system yet. Ask your administrator to invite you." etc.), with the technical cause kept for admins (logs or a details toggle).
  3. A refused SAML IdP-initiated sign-in is silent. With allowIdpInitiated off, the Okta tile lands on /_console/login with no message. The server logs "SAML IdP-initiated SSO rejected: InResponseTo missing and allowIdpInitiated is false". The page should say that sign-in has to start from this system's login page, or that the admin must allow IdP-initiated sign-in.
  4. Log out does not end the IdP session. After Log out, "Sign in with SSO" signed the same user straight back in with no password prompt (Okta session alive). On a shared computer the next person gets the previous user's account. Expected: RP-initiated logout to the IdP's end_session_endpoint for OIDC (Okta and Entra both publish one) and SAML SLO where configured, or at least an admin setting for it.
  5. IdP-provisioned users: the user record shows "Email Verified: No" although the IdP asserted the email, and offers "Set Password", which gives an SSO-only user a local password that bypasses the IdP. That may be intended; enterprise customers usually want SSO-provisioned users to sign in only through the IdP, or at least a warning on that button.
  6. Edit Sign-In Options renders its two independent checkboxes (Allow IdP-Initiated, Allow JIT) as round, radio-style controls, which read as either/or.

What works well: the IdP-provisioned users are labelled "IdP-Provisioned" in the Users list; JIT, group → permission-set projection and OIDC signing-key rotation (Okta keyRotate) all worked live; the delete dialog explains the consequence for the domain's users.

Activity

  1. added
    finding
    on Nov 10, 2026
  2. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: finding promoted → domain:ui · p1 · pm:queue · 2026-11-10T07:55Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. added
    bug
    domain:ui
    pm:queue
    priority:p1
    and removed
    finding
    on Nov 10, 2026
  4. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    domain:ui#2 · os-support-ai · session_01WGufzge87Pae2h7uSQzX8H

    Reserved by domain:ui#2 · 2026-11-10T08:10Z · SSO end-user UX on the login page and Setup · ⛔ the Claim: follows

    • Taken from pm:queue (triage 6762098073: domain:ui, p1, Enterprise order under pm-dispatch:企业版相关卡的优先级以 cloud ROADMAP.md 为准,席位不另行排序;总监席每周复读并把不一致之处呈维护者(cloud#3835 子项 6) #31574) under the maintainer's 「各开一个 spec ui devx 座位」 (this account's project, 2026-11-09).
    • Scope of this dispatch: items 1, 2, 3 and 6 (the empty-email message, per-cause end-user sentences, the silent IdP-initiated refusal, the checkbox controls). Items 4 and 5 are not built here: triage referred this card to security#1 by number, and whether they need private handling is that lane's call; the seat files no child for them and says nothing more about them in public. If a UX item turns out to need a server signal, the seat files a domain:server child at that point.
    • The card thread is being opened; the Claim: naming its branch follows within the hour.
    • Thread-read: 6762098073.
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 10, 2026
  6. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    domain:ui#2 · os-support-ai · session_01WGufzge87Pae2h7uSQzX8H

    Claim: PM loop round 1 · 2026-11-10T08:11Z
    Session: session_01WGufzfoxBMQZZCvgX8SGhb (card thread, dev) · seat session_01WGufzge87Pae2h7uSQzX8H
    Account: os-support-ai
    Branch: claude/project-thread-m23m40
    Worktree: objectstack-issue-32087
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/apps/console/src/pages/auth/LoginPage.tsx and its tests; ui/packages/app-shell/src/console/auth/** (the package login page and its refusal mapping) as far as the shared mapping needs; ui/packages/auth/src/LoginForm.tsx and its tests; ui/packages/i18n/src/locales/**; the renderer that draws the Edit Sign-In Options booleans (located by the dev, reported before building if outside ui/); root .changeset/; ⛔ no server code, no packages/spec/**
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: yes (widening): new keys in the published @object-ui/i18n catalogue
    Metadata-protocol: none
    Responsibility: ui/apps/console/src/pages/auth/LoginPage.tsx:366-374 (objectstack) prints one "link expired" sentence plus the raw cause for every SSO refusal | no platform path covers it: the server sends codes, the wording is the console's | every end user of an SSO-enabled Enterprise deployment, today
    Thread-read: 6762098073
    Premise: holds at origin/main fe1249b7: auth.login.errors.oauthCallbackFailed is the only SSO callback sentence on the console login page
    Serial constraints cleared: PR #32050 (#32021, this seat) edits the console and package LoginPage.tsx, signInRefusalMessages.ts and console LoginPage.* tests; this card builds on main away from its regions and merges main after #32050 lands (landed first). No other open PR names these files.

    Scope: items 1, 2, 3 and 6 of #32087; Part of #32087. Items 4 and 5 stay with the lane triage referred them to. Order: /mnt/project-files/ui-orders/32087.md. Summons: the maintainer's 「各开一个 spec ui devx 座位」 (this project, 2026-11-09).

  7. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    domain:ui#2 · os-support-ai · session_01WGufzfoxBMQZZCvgX8SGhb
    os-dev-report
    {
    "issue": 32087,
    "status": "done",
    "branch": "claude/project-thread-m23m40",
    "pr": "#32129",
    "head": "dc0a73f3",
    "session": "session_01WGufzfoxBMQZZCvgX8SGhb",
    "premise_still_valid": true,
    "summary": "Items 1, 2 and 6 ship whole; item 3 ships for OIDC (state_not_found) and is a reported deviation for SAML, so the PR says Part of #32087. (1) LoginForm refuses an empty or whitespace-only email before any SSO request with the new optional label ssoEmailRequiredText, which both login pages pass. (2) ssoCallbackRefusal.ts maps SELF_REGISTRATION_CLOSED, account_not_linked, saml_error / invalid_saml_response and state_not_found to their own sentences, the generic oauthCallbackFailed only for anything else; code and description sit behind a Technical details toggle. DefaultLoginPage reads no ?error, so one reader. (6) The 16px Radix checkbox drew rounded-sm at 10px (theme --radius 0.875rem); console index.css sets --radius-sm 0.25rem on [role=checkbox] only, measured live 10px before, 4px after. No packages/** metadata moved.",
    "line_budget": "22 files, +494 / -19 against origin/main (code: LoginForm.tsx, ssoCallbackRefusal.ts new, two LoginPage.tsx, index.css; 11 locale packs; 5 test files; 1 changeset)",
    "files_changed": [
    ".changeset/32087-sso-login-refusal-sentences.md",
    "ui/apps/console/src/index-css-scan-excludes-tests.test.ts",
    "ui/apps/console/src/index.css",
    "ui/apps/console/src/pages/auth/LoginPage.tsx",
    "ui/apps/console/src/pages/auth/tests/LoginPage.error-banner.test.tsx",
    "ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts",
    "ui/packages/app-shell/src/console/auth/LoginPage.tsx",
    "ui/packages/app-shell/src/views/ActionParamDialog.test.tsx",
    "ui/packages/auth/src/LoginForm.tsx",
    "ui/packages/auth/src/tests/LoginForm.test.tsx",
    "ui/packages/i18n/src/tests/de-quote-pairing-3876.test.ts",
    "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts"
    ],
    "tests": "Under os-verify-lock at dc0a73f: vitest over packages/auth, packages/i18n, console pages/auth, console index-css test, app-shell console/auth, app-shell ActionParamDialog and the ADR-0060 product-neutral-renderer ratchet: 213 files passed, 2871 tests passed, 13 skipped, exit 0. type-check auth, i18n, app-shell, console: all exit 0. eslint over every changed file exit 0. Ablations via scripts/ablation-replace.mjs, each restored with git diff HEAD empty: item 2 generic banner back 9 failed / 1 passed; item 1 empty-email guard removed 4 failed / 27 passed; item 6 --radius-sm line deleted 1 failed / 3 passed. Browser: dev boot with OS_SSO_ENABLED=true and one SAML provider, en and zh-CN, 11 shots plus measured landings in /mnt/project-files/ui-orders/32087-shots/.",
    "gates": "dispatch-gates --commands at dc0a73f: 38 lines, all under os-verify-lock, 38 exit 0; --ran: 38 derived, 38 run, 0 NOT-MEASURED. check-sdui-manifest exit 0 (in the 38). pnpm --dir ui run check:spec-symbols exit 0; check:new-line-citations exit 0; check:nul-bytes exit 0. First sweep on be5bf7c caught 2 i18n pins (zh-Hant generator output, de quote-pair count), fixed in dc0a73f. CI check-runs on #32129 not yet read (PR just opened).",
    "dogfood_battery": "n/a: no ! in the PR title and Clause-② is widening",
    "deviations": [
    "item 3 SAML: an IdP-initiated SAML refusal answers 302 to the site root with ?error=unsolicited_response, and the root redirect (packages/cli/src/utils/console.ts) sends /_console/ without the query, so the login page gets no signal. Per the order no server code changed; seat to file a domain:server child (land the refusal on the login page, or keep the query through the root redirect). UI side is then one row for unsolicited_response in ssoCallbackRefusal.ts.",
    "harness asked for a PR assignee and reviewer via MCP; skipped per os-dev rule 2 and the order (no assignee, no reviewer, no MCP writes)."
    ],
    "mcp_calls": "read-only only (issue and claim reads on #32087); no write tool.",
    "api_writes": "2: POST dispatches (relay pr_create, read-back identical, #32129) and this os-dev-report comment via scripts/pm/post-stamped.mjs. Plus 3 git pushes of the branch (52043d2, be5bf7c merge of main, dc0a73f).",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "class: a · reach: exception: maintainer (the order names this domain:server child) · a refused IdP-initiated SAML sign-in lands on / with ?error=unsolicited_response and the root redirect to /_console/ drops the query, so the user sees no message; ask: land it on the login page like the other SAML refusals, or keep the query through the redirect · dedupe: SAML IdP-initiated refusal landing, root redirect query drop"
    ]
    }

    Stamp: 2026-11-10T09:50Z


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    Contributor

    domain:ui#2 · os-support-ai · session_01WGufzge87Pae2h7uSQzX8H

    Landed (part) · 2026-11-10T11:01Z

    Blocked-by: #32132

    Reading Value
    PR #32129 MERGED as cc8c4b0f4e67fcff96a6d685096c2003a460167d (Part of #32087)
    Delivered item 1 (empty email + "Sign in with SSO" asks for the email, no request), item 2 (per-cause end-user sentences, technical cause behind a toggle), item 3 for OIDC (state_not_found), item 6 (checkboxes keep a small corner)

    Remaining, and whose:

    pm:dispatched → pm:blocked, assignee cleared.

  9. 39 remaining items

  10. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

    2026-11-14T04:35Z One more measured case: EMAIL_DOMAIN_NOT_ALLOWED still shows the generic "link expired" headline, on 18.4.0.

    Where. Staging test1016 os-4e4qa4, Enterprise plan, cloud PR #4415 head 153d10ca (objectstack 18.4.0). The provider is a real Okta OIDC app (okta, domain objectlab.ai verified, JIT on).

    What happened. An Okta user whose email is qa.sub@dev.objectlab.ai (a subdomain, so unlisted) used the login page's 「Sign in with SSO」.

    • The server refused it correctly. The container logged [sso] account creation refused: the address is not at a domain the provider has proven {"code":"EMAIL_DOMAIN_NOT_ALLOWED","providerId":"okta","method":"sso-oidc"}, and no account was created.
    • The callback lands on /_console/login?error=EMAIL_DOMAIN_NOT_ALLOWED&error_description=With SSO domain verification on, an identity provider creates an account only for an email address at a domain it has proven. Nothing was created.
    • The banner reads "Single sign-on could not be completed — the sign-in link expired or was already used. Please try again." The real code appears only behind 「Technical details」.

    Why. ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts has its own sentences for SELF_REGISTRATION_CLOSED, account_not_linked, saml_error / invalid_saml_response and state_not_found. Every other code falls back to oauthCallbackFailed. EMAIL_DOMAIN_NOT_ALLOWED already has an end-user sentence on the sign-up side (signUpRefusalMessages.ts:65, auth.register.errors.emailDomainNotAllowed), but the SSO callback mapping does not use it.

    Impact. "Please try again" sends the person into a loop that can never succeed. The refusal is about their email domain, which only their administrator can change.

    Suggested sentence (the decision on wording stays with this card): something like "Your email address isn't at a domain this sign-in is set up for. Ask your administrator."

  11. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: half-state repair → domain:server · lease:A1 · p1 · pm:queue · 2026-11-14T22:04Z

    ⛔ Not a claim.

    • Why: security#2 (os-tesla) went offline at 2026-11-14T03:07Z and listed this card as a stay-behind (mailbox pm:mailbox — triage#1 · hotlong #32588). pm:dispatched had been removed at 2026-11-14T02:17Z, but the assignee stayed, so no dispatcher could take it. The triage sweep should have caught that and did not; that is fixed now.
    • Route: the refusal headline mapping is plugin-auth SSO, Area A1. The security seat is vacant. Assignee cleared, back to pm:queue. Grade p1 unchanged: every SSO refusal shows the wrong headline to real end users, re-measured on 18.4.0 by director#1 in comment 2026-11-14T04:35Z.
  12. added
    domain:server
    pm:queue
    on Nov 14, 2026
  13. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    domain:server#5 · os-elon-musk · session_016WV4d1NJYFGVi2FRztyBNo

    Claim: server area-lease pilot (#33059), area A1 (auth and identity), dispatched by seat domain:server#5 · p1 · executed by an os-dev subagent of the area A1 thread · posted at 2026-11-14T22:42Z
    Session: session_016WV4d1NJYFGVi2FRztyBNo (area A1 thread)
    Account: os-elon-musk
    Branch: claude/area-A1-32087
    Domain: domain:server
    Scope: what remains after PRs #32129, #32271, #33170 and #33177: the SSO callback refusal mapping gives EMAIL_DOMAIN_NOT_ALLOWED (director#1, comment 6871810298) and INVALID_EMAIL (an SSO account creation refused for a value that is not an address, since #33418) their own end-user sentences instead of the generic "link expired" headline.
    File surface: ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts and its tests, the sentence keys in ui/packages/i18n/src/locales/* only if no existing key fits, a changeset. Open PR #33496 also edits ssoCallbackRefusal.ts and the locale files; the later of the two merges main in.

  14. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 14, 2026
  15. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    Contributor

    domain:server#5 · os-elon-musk · session_016WV4d1NJYFGVi2FRztyBNo
    os-dev-report

    {
      "issue": 32087,
      "status": "done",
      "branch": "claude/area-A1-32087",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33525",
      "session": "session_016WV4d1NJYFGVi2FRztyBNo",
      "premise_still_valid": true,
      "summary": "ssoCallbackRefusal.ts gains two rows in SSO_CALLBACK_REFUSALS, the same shape as the existing per-cause rows: EMAIL_DOMAIN_NOT_ALLOWED -> auth.login.errors.ssoEmailDomainNotAllowed and INVALID_EMAIL -> auth.login.errors.ssoEmailNotAnAddress, both saying no account was created and sending the person to their administrator (no 'try again'). The sign-up key auth.register.errors.emailDomainNotAllowed was not reused because it says 'not allowed to register here'. Both keys added, translated, to all eleven locale bundles (the convention the sibling SSO keys follow); the technical cause stays behind the details toggle; unknown codes keep the generic sentence. Premise verified on origin/main f068cde84d: plugin-auth sso-account-at-proven-domain.ts redirects with error EMAIL_DOMAIN_NOT_ALLOWED and with INVALID_EMAIL (SSO_ACCOUNT_NOT_AN_ADDRESS). Changeset: @object-ui/console + @object-ui/i18n patch. The claim carries no Clause-2 / Metadata-protocol lines, so per os-dev.md none were written in the PR body or changeset (see open_questions).",
      "tests": "Head 8ee01c97c9. Locked: pnpm --dir ui exec vitest run apps/console/src/pages/auth/__tests__/LoginPage.error-banner.test.tsx apps/console/src/pages/auth/__tests__/LoginPage.access-denied-32992.test.tsx -> Test Files 2 passed (2), Tests 17 passed (17), VERDICT command-exit 0. pnpm --dir ui exec vitest run packages/i18n/ apps/console/src/pages/auth/ -> Test Files 135 passed (135), Tests 2220 passed | 13 skipped, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs (source file is imported relatively from src, no dist leg): delete row 'EMAIL_DOMAIN_NOT_ALLOWED: EMAIL_DOMAIN_NOT_ALLOWED,' anchor 1->0, blob a066b65aca61->3de08faebb14, the EMAIL_DOMAIN_NOT_ALLOWED case fails (1 failed | 12 passed), restored blob == HEAD, git diff HEAD empty; delete row 'INVALID_EMAIL: EMAIL_NOT_AN_ADDRESS,' anchor 1->0, blob a066b65aca61->a19b1b0623e8, the INVALID_EMAIL case fails (1 failed | 12 passed), restored blob == HEAD, git diff HEAD empty. CONTROL cases (unknown code, Object.prototype-named code -> generic sentence) green throughout.",
      "gates": "Local on 8ee01c97c9: pnpm --filter @object-ui/i18n run type-check && pnpm --filter @object-ui/console run type-check (after building the console's @objectstack and @object-ui dependency closures) -> VERDICT command-exit 0. eslint on the 2 changed ts/tsx files + 11 locale files -> exit 0. ui check:i18n-keys exit 0, check:i18n-drift exit 0, check:i18n-dead-keys exit 0 (report lists the two new keys needs-review, same as every sibling auth.login.errors.sso* key read through RefusalCopy). Derived families (dispatch-gates --commands, no paths): 38; --ran reconciliation 'accounted for - 37 run, 1 NOT-MEASURED': 36 check/self-test commands exit 0 each plus pnpm --dir ui exec vitest run scripts/ (171 files passed, 2 skipped; 5062 tests passed) exit 0; NOT MEASURED: check:type-check-debt, reason: killed by my local 300s timeout mid closure-build (exit 124), CI Lint & Repo Gates runs it. PR check-runs: not read - CI had not converged at report time (in_progress); not waited on per os-dev.",
      "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 - via fleet-write relay request fw-20261114T233401Z-9b2aba (pr_create: POST /repos/objectstack-ai/objectstack/pulls draft, POST /repos/objectstack-ai/objectstack/issues/33525/assignees os-elon-musk) + this os-dev-report comment on #32087 via post-stamped.mjs; git push x2 (not REST)",
      "open_questions": [
        {
          "question": "The claim (comment 6885350959) carries no Clause-2 / Metadata-protocol lines, so per os-dev.md (copy, never invent) the PR body and changeset carry none, while AGENTS.md Post-Task Checklist step 3 asks for both and Check Changeset reads the PR body. Which lines should the seat add?",
          "options": [
            "A Seat adds 'Clause-②: yes (widening)' and 'Metadata-protocol: none' to the PR body and changeset (the pair #33436 used for the same kind of change: new i18n keys, no key removed, patch)",
            "B Leave both absent and accept whatever Check Changeset reports"
          ],
          "recommendation": "A, because the change only adds two locale keys to the published @object-ui/i18n packs and touches no metadata protocol, which is exactly the #33436 precedent"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:serverpm:dispatchedpriority:p1security

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions