Repository navigation
Description
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:
- ObjectOS logo, then the host
OS-3V9XRQ.OBJECTOS.APPin a monospace chip. - A red banner: 「你登录所用的账号不是本系统所属组织的成员。请使用该组织成员的账号登录,或请该组织的管理员邀请你。」
- Two text links, 「切换账号」 and 「返回控制台」, then a grey paragraph: 「"切换账号"会在新标签页中打开你的登录服务并在那里退出登录。之后请在此处使用有权访问的账号重新登录。」
- A disclosure, 「▸ 技术详情」, holding the English
error_description, which carries the organization name: "This account is not a member of 'My Organization'…". - 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_pendingrenders its own title and next step.- A component test pins: when
objectstack_error_reasonis present, the SSO sign-in card is not rendered. - zh-CN and en strings are reviewed for plain wording (no 「本系统所属组织」).
Activity
objectstack-fleet commentedon Nov 18, 2026
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).
not_memberorinvitation_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/loginwith a second SSO card under the banner.2. Google-style account switching (preferred).
Where it lands. This is cross-repo, so triage may split it.
repo:cloud,apps/cloudsign-in pluspackages/service-cloudOIDC hand-off: theprompt=select_account/loginhandling of the authorize request).ui/apps/console/src/pages/auth/(this repo).Acceptance (replaces the body's first bullet).
objectstack-fleet commentedon Nov 18, 2026
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.
objectstack-fleet commentedon Nov 18, 2026
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
objectstack-fleet commentedon Nov 19, 2026
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 inui/apps/console/src/pages/auth/. That comment itself says "triage may split it". Asked: split into arepo:cloudcard (sign-in page + chooser + hand-off) and an objectstackdomain:uicard (the redirect,Blocked-by:the cloud card if the redirect needs its URL contract), or route the whole card to therepo:cloudseats. The currentpm:queuestate is kept.