Skip to content

Console sign-in: the "wrong account" refusal page stacks a red banner over a "Welcome back / Continue with SSO" card, hides who is signed in, and buries "Switch account" as a text link #35163

Open

Description

@objectstack-fleet

director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

Filing gate: ① a defect seen on staging, raised by the maintainer on the page itself, verbatim: 「右边这个界面也是很丑很奇怪」「就是刚才账户不对,提示切换的界面」 (director session, 2026-11-18). reach: staging cloud main 19de5755a6 (objectstack pin 936d3356fbef), 2026-11-18T08:5xZ. A signed-in cloud account that is not a member opens another organization's environment (/_console/). It lands on /_console/login?error=access_denied&…&objectstack_error_reason=not_member. Desktop width 800 px, zh-CN.
Reader: the domain:ui lane. The page is ui/apps/console/src/pages/auth/LoginPage.tsx, with the refusal mapping in ssoCallbackRefusal.ts and strings ssoSwitchAccount* in ui/packages/i18n/src/locales/*.ts. The sentence and the reason codes come from cloud#4471 (PR cloud#4841) and objectstack#34265; this card changes only the page around them. Related topic: objectstack#34571 (console core experience, 云端入口).
Dedupe: repo:objectstack-ai/objectstack sso refusal page 0 hits; repo:objectstack-ai/objectstack not a member login page 0 hits; repo:objectstack-ai/objectstack switch account login 0 hits; repo:objectstack-ai/objectstack 切换账号 100 hits, none about this page (nearest: topic objectstack#34571).

维护者速读

  • 现象:用错账号打开别的组织的环境,页面上面是红色提示「不是本系统所属组织的成员」,下面却还是「欢迎回来 · 继续单点登录」的登录卡,而且那是唯一的大按钮。点了会用同一个账号再被拒一次,原地打转。
  • 还缺什么:不显示当前登录的是哪个账号;顶部是主机名 OS-3V9XRQ.OBJECTOS.APP 而不是组织名;「切换账号」「返回控制台」只是两个小文字链接,外加一段「在新标签页中打开你的登录服务并在那里退出登录」的实现说明;「技术详情」直接给普通用户看。
  • 要做的:拒绝时只显示一张卡:说清「你没有「组织名」的访问权限」、当前账号是谁、主按钮切换账号、次按钮回到自己的组织;技术信息折叠。参照 Google、Microsoft 365、Slack、Notion 的同类页面。

Measured (staging, 2026-11-18)

Top to bottom, as rendered:

  1. ObjectOS logo, then the host OS-3V9XRQ.OBJECTOS.APP in a monospace chip.
  2. A red banner: 「你登录所用的账号不是本系统所属组织的成员。请使用该组织成员的账号登录,或请该组织的管理员邀请你。」
  3. Two text links, 「切换账号」 and 「返回控制台」, then a grey paragraph: 「"切换账号"会在新标签页中打开你的登录服务并在那里退出登录。之后请在此处使用有权访问的账号重新登录。」
  4. A disclosure, 「▸ 技术详情」, holding the English error_description, which carries the organization name: "This account is not a member of 'My Organization'…".
  5. A white card: 「欢迎回来」 / 「使用你所在组织的单点登录。」 / a full-width primary button 「继续单点登录」.

The primary action loops. 「继续单点登录」 signs in again with the same cloud session and lands on the same refusal.

How comparable products do it

  • Google (Docs, Workspace), "You need access": the signed-in account (avatar and email) is shown in the card. The primary button is "Request access". "Switch account" is next to it. There is no second sign-in form.
  • Microsoft 365 / Entra, "You can't access this": "Signed in as …", then "Sign in with a different account". The error code and request id sit under "More details".
  • Slack, "You don't have an account on this workspace": your email, "Try another email" and "Request to join". The workspaces you do belong to are listed, one click each.
  • Notion, "No access": "Logged in as …", "Request access", "Switch account", and a way back to your own workspace.

What they share: one card, the current account shown, a clear next step as a button, and the technical detail folded.

Expected

On a refusal (not_member and invitation_pending), the page shows one card, and the SSO sign-in card is not rendered.

  • Title: names the organization, e.g. 「你没有「My Organization」的访问权限」. For invitation_pending: 「你有一个「…」的邀请还没接受」 plus an accept step.
  • The current account (avatar or initial, and email), so the person sees which account was refused.
  • Primary button 「切换账号」: signs out and returns to sign-in in place. If the IdP sign-out must open elsewhere, the page still offers one button, not a paragraph about tabs.
  • Secondary 「回到我的组织」: to the cloud console's environment list. This replaces the ambiguous 「返回控制台」.
  • Technical details: one folded line with the reason code, for support.
  • Show the organization name in place of the host chip, or above it.
  • Optional, the maintainer's call (needs a product flow that does not exist today): 「申请加入」, which notifies the organization's admins.

Acceptance

  • On staging, the same probe (a non-member opening another organization's environment) renders one card, with the org name and the signed-in email, 「切换账号」 as the only primary button, and no 「继续单点登录」 card.
  • invitation_pending renders its own title and next step.
  • A component test pins: when objectstack_error_reason is present, the SSO sign-in card is not rendered.
  • zh-CN and en strings are reviewed for plain wording (no 「本系统所属组织」).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

    2026-11-18T09:00Z Maintainer direction for this card (director session, verbatim): 「账号不对不是应该跳回登录页,当然最好能够支持像 Google 那样切换账户」. This replaces the card body's "one refusal card on the environment page" with the shape below.

    1. A wrong account goes back to the sign-in page (required).

    • On not_member or invitation_pending, the person lands on the sign-in page that the environment's hosted path uses, which is the cloud sign-in page. They do not stay on the environment's /_console/login with a second SSO card under the banner.
    • The sign-in page shows the reason as one line at the top, for example 「jack@… 不是「My Organization」的成员,请换一个账号登录」, and is ready for another account.
    • The current session must not silently sign the person straight back into the same refusal. Today the 「继续单点登录」 button loops.

    2. Google-style account switching (preferred).

    • The sign-in page offers an account chooser: the accounts already signed in on this browser, each with avatar and email, plus 「使用其他账号」. Picking one continues the hand-off to the environment with that account.
    • An account the environment refused is marked as such in the chooser, e.g. greyed out with 「无权访问 My Organization」.
    • Switching never signs the other accounts out. That is the difference from today's 「切换账号」, which signs out in a new tab.

    Where it lands. This is cross-repo, so triage may split it.

    • The cloud sign-in page and the hand-off live on the control plane (repo:cloud, apps/cloud sign-in plus packages/service-cloud OIDC hand-off: the prompt=select_account / login handling of the authorize request).
    • The environment's refusal redirect lives in ui/apps/console/src/pages/auth/ (this repo).
    • Multiple sessions per browser need the auth layer to hold more than one session. better-auth ships a multi-session plugin that may serve as the base; whether it fits the hosted hand-off is for the seat to confirm. It is not assumed here.

    Acceptance (replaces the body's first bullet).

    • With a non-member account signed in, opening another organization's environment ends on the sign-in page, showing the reason line and an account choice. No loop.
    • With two accounts signed in, one of them a member, choosing the member account opens the environment without signing out the other.
  3. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 → p1. Grading principle of 2026-11-18, item 1. This is the hosted sign-in path a person meets when they open an environment with the wrong account, and the maintainer called the page out on staging (「右边这个界面也是很丑很奇怪」). Looks and the main flow a user meets first are p1.

  4. added
    priority:p1
    and removed
    priority:p2
    on Nov 18, 2026
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p2 (was p1) · area:ux · Bug · cosmetic × hosted sign-in page · the wrong-account refusal page stacks a red banner over a welcome panel; UX is never p3, and not every user hits it

  6. added
    priority:p2
    and removed
    priority:p1
    on Nov 18, 2026
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE

    pm:retriage · 2026-11-19T07:39Z · route question, not taken by this seat. Since the director's direction 6973869449 (the maintainer, verbatim: 「账号不对不是应该跳回登录页,当然最好能够支持像 Google 那样切换账户」), the fix has a cloud half: the cloud sign-in page, its account chooser and the OIDC hand-off (prompt=select_account) live on the control plane, and only the environment's refusal redirect lives in ui/apps/console/src/pages/auth/. That comment itself says "triage may split it". Asked: split into a repo:cloud card (sign-in page + chooser + hand-off) and an objectstack domain:ui card (the redirect, Blocked-by: the cloud card if the redirect needs its URL contract), or route the whole card to the repo:cloud seats. The current pm:queue state is kept.

  8. added
    pm:retriage
    and removed on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cloudbugdomain:uipm:queuepm:retriagepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions