Skip to content

docs(configure): SSO admin guides for Okta and Microsoft Entra ID, checked against production v2.12.0 (supersedes #467) - #472

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/pm-dispatch-objectos-ju9td1-docs-467
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/pm-dispatch-objectos-ju9td1-docs-467

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of objectstack-ai/cloud#4363
Clause-②: no
Metadata-protocol: none

Supersedes #467 (its commit bc76778 is kept as this branch's first commit; #467 is left for the seat to close).

维护者速读

  • 改了什么: 新增两篇对外的 SSO 管理员指南(Okta、Microsoft Entra ID,各含 OIDC 和 SAML),configure/authentication 增加「Setup → SSO Providers」一节,和代码里配置的 genericOAuth 路线分开写;FAQ 加了指向两篇指南的链接。只改英文,译文按本仓规则留给翻译轮。接手后按生产 v2.12.0 和已发布框架校正了三处(见下)。
  • 为什么改: 管理员指南目前只有 cloud 仓的内部草稿,客户没有可照着填的对外页面;现有认证页只写了 /api/v1/auth/oauth2/callback/... 那条路线,和 Setup 里注册的 SSO 提供方用的 /api/v1/auth/sso/... 不是一回事。
  • hold 已解除: 「ObjectOS Cloud 始终要求域名校验」以 cloud PR #4368(cloud#4315 裁决 A)为前提。它已于 2026-11-12 合并(086e2d3c),包含在 v2.12.0 里;v2.12.0 于 2026-11-14 由 deploy-cloud-prod(run 43611884480)部署到生产,生产 health 头读到 0ffc6d43。
  • 风险与回滚: 纯文档,回滚即 revert。上次评论点名的三项依据代码核对(见「Flagged items」),这三项都没有线上实测。
  • CI build 红的原因: 不是本 PR 的内容。PR 切出时,ja/zh-Hans/zh-Hant 的 configure/meta.LOCALE.json 会整份替换英文的 pages 列表,两篇新页面在这些语言的侧边栏里没有入口,check-locale-surface 的「至少认出一个未翻译条目」守卫因此报错。main 的 fix(docs): indexing — noindex fallbacks and .mdx routes, linked sitemap with lastmod, indexing gate (#469) #470 加了 englishPageListsPlugin,改为一律用英文的页面列表;合并 main 后通过,没有动任何译文文件。
  • 先看: content/docs/configure/sso-entra-id.mdx(SAML「Users without a mailbox」一条、证书轮换、On ObjectOS Cloud),content/docs/configure/sso-okta.mdx(IdP 发起保持关闭、On ObjectOS Cloud)。
  • 两分钟验证: 打开预览 /docs/configure/sso-entra-id。预期:Configure 侧边栏里 Authentication 之后有两篇新页面;「On ObjectOS Cloud」一节不再有「Group mappings cannot be saved」;/ja/docs/configure/users 的侧边栏也列出两篇(英文标题)。
  • 需要你做的: 无,席位落地。

What changes

Unchanged from #467 (bc76778):

  • New: content/docs/configure/sso-okta.mdx and content/docs/configure/sso-entra-id.mdx, each with OIDC and SAML 2.0 sections and the exact values an administrator pastes. That covers the OIDC callback, SAML ACS and SP entity ID, the Okta access policy and groups claim, the Entra mailbox-less users, MFA and assignment, domain verification by DNS TXT record, group mapping, and the IdP-initiated and sign-out caveats.
  • configure/authentication.mdx: a "Setup → SSO Providers" section beside the configuration-time genericOAuth route. configure/meta.json: the two pages after authentication. resources/faq.mdx: one sentence linking the guides.

New in this takeover (6f2ea70), each from the evidence below:

  1. objectstack#32146 is closed, but no release carries the fix yet. The PRs that repair it, objectstack#33418 (3c44a97f) and objectstack#33490 (480246bc), merged on 2026-11-14 and 2026-11-15. Neither is in framework 181ad7d4, which is both the latest framework release (18.4.0) and the pin production v2.12.0 serves. In both guides, the condition for keeping IdP-initiated sign-in off changes from the issue being fixed to a release carrying the repair; the link to objectstack#32146 stays. The behaviour the caveat warns about is still what every released version does. The same applies to objectstack#32087: its repairs, objectstack#33177 and objectstack#33525, are not in 181ad7d4 either. Its caveats name no issue state, so they are unchanged.

  2. The ObjectOS Cloud bullet "Group mappings cannot be saved on ObjectOS Cloud yet" is removed from both guides. It rested on cloud#4314, which closed on 2026-11-15. At v2.12.0:

    • the hosted auth proxy (packages/objectos-runtime/src/auth-proxy-plugin.ts) forwards the whole auth path to the environment's handleRequest (cloud#4415, c4153027, which is in v2.12.0);
    • framework 181ad7d4 serves POST /api/v1/auth/admin/scim/set-group-mapping (plugin-auth/src/auth-plugin.ts);
    • the only hosted filter is admin/sso/* on a plan without the external IdP.

    cloud#4538, the PR that ended cloud#4314 after v2.12.0, says the same ("The 404 on the card is gone at the current pin") and only changes the Free/Team refusal. Not exercised live on production.

  3. Entra SAML, users without a mailbox, is reworded to what the code proves (Flagged items, row 3).

Flagged items ("based on 4.4.0 framework action/docs, not tested live")

The matching versions: Cloud is production v2.12.0, which serves framework 181ad7d4 (= 18.4.0). Enterprise 4.4.0 is cloud ee-v4.4.0 (23b6cf9d), on framework c5758b0. Both framework commits were read with git show, not a checkout.

Item What the code shows Wording
1. Certificate rotation with Edit SAML Settings / Keep trusting the current certificate At both c5758b0 and 181ad7d4 (the two files are byte-identical between them), platform-objects/src/identity/sys-sso-provider.object.ts L365-L380 has the action and its two fields: New IdP Signing Certificate, and Keep trusting the current certificate ("accept assertions signed by either certificate. Edit again without this to drop the old one"). plugin-auth/src/register-sso-provider.ts L1019-L1022 stores [old, new] when the box is on and [new] otherwise. sso-provider-lifecycle.test.ts L857 pins both. sso-saml-refusal-cause.ts L198-L203 records that the vendor builds its samlify IdP from cert, "one or a list". Kept. Shown by code and a unit test; not run against a live IdP.
2. Entra SAML Map: claim-URI fields sys-sso-provider.object.ts L192-L196 at 181ad7d4: Map: Email / First name / Last name / Display name / Groups attribute. The help text names the same Entra URIs the page lists. Defaults are email, givenName, surname and displayName, as the page says. Edit Attribute Mapping is L511. Kept. Shown by code.
3. Switch the Entra SAML emailaddress claim to user.userprincipalname for users without a mailbox @better-auth/sso 1.7.12 (the framework's pin, unpatched) maps the SAML email as attr(mapping.email || "email") || extract.nameID. When the mapped attribute is absent, ObjectOS takes the NameID. That Entra omits the claim for a user without user.mail is Entra's behaviour and is not in this code. Softened. The bullet now says the claim comes from user.mail, that ObjectOS falls back to the NameID when the attribute is missing, and that the UPN switch gives these users an email attribute of their own. It no longer says the switch is what makes their sign-in work.
(also flagged in the PR body) TXT record name and validity @better-auth/sso 1.7.12: getVerificationIdentifier = _ + (tokenPrefix or better-auth-token) + - + providerId, looked up at IDENTIFIER.DOMAIN, expiring after 3600 * 24 * 7 seconds. The framework passes domainVerification: { enabled: true } with no tokenPrefix (auth-manager-plugin-list.ts L795). Kept. Shown by code.

The hold's own sentence, "ObjectOS Cloud always requires it, and it cannot be turned off", is checked at v2.12.0. artifact-kernel-factory.ts L1347-L1361 passes ssoDomainVerification: true on every plan that carries the external IdP. Its changeset adds that explicit config outranks OS_SSO_DOMAIN_VERIFICATION, so a deployment variable cannot turn it off. Enterprise "on by default": the ee-v4.4.0 image config writes OS_SSO_DOMAIN_VERIFICATION=true when it is unset (docker-entrypoint.sh).

The build failure on #467, and its fix

CI on bc76778 failed in check-locale-surface with no-tree-entries for zh-Hans, zh-Hant and ja: "the content tree has 2 untranslated page(s) … but no untranslated page-tree entry could be recognised". At that base, fumadocs read each configure/meta.LOCALE.json in place of meta.json, pages included. Those files list 15 pages and neither new guide, so the two pages had no sidebar entry in those locales, and the guard that stops the rule passing over nothing fired. main #470 added englishPageListsPlugin (apps/docs/lib/source.ts): a locale meta keeps its labels and takes the English pages list. AGENTS.md now documents that behaviour.

The fix is the merge with main. No meta or translation file is touched, and the locale meta files are translation-owned. After the merge, the gate counts 50 untranslated entries in each of ja, zh-Hans and zh-Hant, 0 of them unmarked. The built ja/docs/configure/users.html carries href="/ja/docs/configure/sso-okta" with lang="en" "SSO with Okta".

Not moved: .cloud-sha

It stays unpinned. AGENTS.md moves the cloud pin "when someone refreshes the docs to match production". This PR checks its own pages against v2.12.0, not the whole site, so pinning 0ffc6d43 would claim an alignment review that was not done.

Checks

At head 6f2ea70, in a worktree. Each exit code was captured before any pipe; turbo tasks ran with --force under the shared verify lock, with NEXT_PRIVATE_STANDALONE=true as in CI.

  • check-node-floor.mjs --self-test 0 · check-node-floor.mjs 0 · check-half-states.mjs --self-test 0
  • gen-zh-hant.mjs --check 0 · check-doc-samples.mjs 0
  • check-translation-ownership.mjs 0 ("0 translation artifact(s) and 5 other file(s)") · check-translations.mjs 0 (stale, reported not blocking: authentication and faq, ja and zh-Hans; missing: the two new pages) · check-translation-output.mjs --self-test 0 · --files 0
  • pnpm turbo run type-check --continue 0 · pnpm turbo run build 0 · pnpm turbo run test 0
  • check-locale-surface.mjs 0 · check-positioning.mjs 0 · check-search-locales.mjs 0 · check-search-heap.mjs 0
  • check-indexing.mjs 1, NOT MEASURED for lastmod. The only finding is sitemap-lastmod-missing on all 408 URLs, the generator's designed answer on a shallow clone (depth-200 fetch here). Every other indexing rule was clean. CI checks out full history.

Rendered with next start and Chromium at 1440 and 390 wide: /docs/configure/sso-okta#on-objectos-cloud, /docs/configure/sso-entra-id#option-b-saml-20, #certificate-rotation-saml, /docs/configure/authentication#setup--sso-providers and /docs/resources/faq answer 200, the anchors exist, there are no page errors and no horizontal scroll. /ja/docs/configure/users lists both guides in its sidebar. Checked by eye.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FeA1nwBz1ohH65dvffUGKr

…d a Setup → SSO Providers section

Two new English pages, configure/sso-okta and configure/sso-entra-id, each
covering OIDC and SAML 2.0 with the values an administrator pastes on both
sides: the OIDC callback, SAML ACS and SP entity ID under
/api/v1/auth/sso/..., the Okta authorization-server access policy and a
password-only authentication policy for test accounts, the Entra email
claim for users without a mailbox, MFA registration, per-user assignment on
Entra ID Free, DNS TXT domain verification, and group mapping with Map SSO
Group. authentication.mdx gains a Setup → SSO Providers section kept apart
from the configuration-time genericOAuth route; the FAQ links the guides.

Values follow the live runs recorded on objectstack-ai/cloud#3666 (Entra ID
OIDC re-run on the released ObjectOS Enterprise 4.4.0).

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk
Co-Authored-By: Claude <noreply@anthropic.com>
…d framework

- objectstack#32146 is closed, but its fixes (objectstack#33418, #33490)
  are in no release yet (framework 18.4.0 = 181ad7d4, the pin cloud v2.12.0
  serves). "until #32146 is fixed" now reads "until a release carries the
  fix for #32146", in both guides.
- The ObjectOS Cloud bullet "Group mappings cannot be saved on ObjectOS
  Cloud yet" is removed from both guides. At cloud v2.12.0 the hosted auth
  proxy forwards the whole auth path to the environment (cloud#4415), and
  framework 181ad7d4 serves admin/scim/set-group-mapping; the only hosted
  filter is admin/sso/* on a plan without the external IdP. cloud#4314,
  which the bullet rested on, is closed.
- Entra SAML, users without a mailbox: say what the code does. The vendor
  (@better-auth/sso 1.7.12, unpatched) takes the email from the mapped
  attribute and falls back to the NameID; the UPN source switch gives such
  users an email attribute of their own.

Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对

ACCEPT(www 席位按维护者 2026-11-15 的指示接手 docs,接手的是 #467)。

  • 前提:原卡等的前提是 cloud PR #4368(托管版强制域名校验)合并并部署。这个前提已解除:#4368 已包含在 v2.12.0 中,v2.12.0 已于 11-14 部署到生产。原卡注明「没有线上实测」的三处:证书轮换和 claim-URI 映射在代码里有依据,保留;Entra 无邮箱用户那句改成代码能证明的说法。「Cloud 上暂时不能保存组映射」已在 v2.12.0 修复,删除。「IdP 发起登录先保持关闭」改为「等带修复的版本发布后再开」,因为 objectstack#32146 的修复还没进生产所用的 18.4.0。ja 侧边栏的构建失败由合并 main 上的 fix(docs): indexing — noindex fallbacks and .mdx routes, linked sitemap with lastmod, indexing gate (#469) #470 解决,没有改任何翻译文件。
  • 门禁 check-runs:head 6f2ea70 上 build、Node floor、Ownership & freshness 都是 success,Deploy docs = skipped(PR 上按设计跳过),mergeable = clean。
  • 落地条款:合并 → 确认 Deploy docs 部署成功 → 关闭被取代的 docs(configure): SSO admin guides for Okta and Microsoft Entra ID, and a Setup → SSO Providers section #467。

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 07:30
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 07d41f8 Nov 15, 2026
4 checks passed
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