Skip to content

docs(configure): SSO admin guides for Okta and Microsoft Entra ID, and a Setup → SSO Providers section - #467

Closed
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/issue-4363-sso-admin-guides
Closed

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/issue-4363-sso-admin-guides

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

维护者速读

  • 改了什么: 新增两篇对外的 SSO 管理员指南(Okta、Microsoft Entra ID,各含 OIDC 和 SAML),configure/authentication 增加「Setup → SSO Providers」一节,和代码里配置的 genericOAuth 路线分开写;FAQ 加了指向两篇指南的链接。只改英文,译文按本仓规则留给翻译轮。
  • 为什么改: 管理员指南目前只有 cloud 仓的内部草稿,客户没有可照着填的对外页面;现有认证页只写了 /api/v1/auth/oauth2/callback/... 那条路线,和 Setup 里注册的 SSO 提供方用的 /api/v1/auth/sso/... 不是一回事。
  • 风险与回滚: 纯文档。回滚即 revert。「托管环境必须验证域名」一句以 cloud PR #4368(cloud#4315 裁决 A)为前提,该 PR 还没合并:本 PR 应在它上线后再合。
  • 先看: content/docs/configure/sso-entra-id.mdx(Entra OIDC 的无邮箱用户、组映射、IdP 发起保持关闭),content/docs/configure/sso-okta.mdx(授权服务器访问策略、仅密码策略),content/docs/configure/authentication.mdx 新增的一节。
  • 两分钟验证: 打开预览站的 /docs/configure/sso-entra-id。预期:侧边栏 Configure 下 Authentication 之后出现两篇新页面;OIDC 一节写明不需要 OS_TRUSTED_ORIGINS,无邮箱用户要把 email 映射为 preferred_username 并打开 Read Claims From the ID Token Only。
  • 需要你做的: 无,席位落地(在 cloud PR #4368 上线之后)。

What changes

  • 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:
    • OIDC callback /api/v1/auth/sso/callback/PROVIDER_ID, SAML ACS /api/v1/auth/sso/saml2/sp/acs/PROVIDER_ID, SP entity ID /api/v1/auth/sso/saml2/sp/metadata?providerId=PROVIDER_ID;
    • Okta: the default authorization server's access policy (without it Okta answers "You are not allowed to access this app"), the groups claim, and a password-only authentication policy for test accounts only;
    • Entra ID: no OS_TRUSTED_ORIGINS; mailbox-less users need the email claim mapped to preferred_username with "Read Claims From the ID Token Only" on; MFA registration under security defaults; per-user assignment on Entra ID Free (group assignment needs P1/P2); SAML claim-URI mapping;
    • domain verification by DNS TXT record (_better-auth-token-PROVIDER_ID.DOMAIN): on by default in Enterprise, always on for Cloud, opt-in on Community;
    • group mapping with Setup → IdP Group Mappings → Map SSO Group (Okta by group name, Entra by group object ID);
    • kept caveats: leave IdP-initiated SAML sign-in off while objectstack#32146 is open; the misleading refusal banner and the IdP session surviving sign-out (objectstack#32087).
  • configure/authentication.mdx: a "Setup → SSO Providers" section with a side-by-side table against the configuration-time genericOAuth route; the old "Enterprise OIDC/SSO" heading becomes "Enterprise OIDC/SSO in configuration" and says which route it is. No capability assertion is removed or reversed, so the locale siblings stay (stale, reported by the freshness gate).
  • configure/meta.json: the two pages after authentication. resources/faq.mdx: one sentence linking the guides.
  • Locales: English only, per AGENTS.md "Translation workflow": no locale sibling is added or edited; the new pages render English in every locale until the translation pass.

Acceptance notes

  • Source of truth: the live runs on objectstack-ai/cloud#3666 (comments 6761407038 Okta, 6764614080 Entra ID on a pre-release image, 6817823887 Entra ID OIDC on the released objectos-ee 4.4.0). Measured there: Entra OIDC registration without OS_TRUSTED_ORIGINS, group projection, Map SSO Group in the console, mailbox-less users with preferred_username + ID-token-only, the SELF_REGISTRATION_CLOSED banner wording, IdP session surviving sign-out; Okta OIDC and SAML end to end including the access policy and the attribute statements.
  • Written from the 4.4.0 product, not re-run live on 4.4.0: SAML certificate rotation with Edit SAML Settings / "Keep trusting the current certificate", the SAML Map: fields for Entra's claim URIs, the Entra SAML emailaddress claim switched to user.userprincipalname for mailbox-less users, and the TXT record name. Sources: the framework's sys_sso_provider actions and content/docs/permissions/sso.mdx at the 4.4.0 framework pin c5758b0, and cloud's apps/objectos-ee/deploy/INSTALL.md (TXT name, 7-day validity, the refusal sentence).
  • Hosted wording follows the public plans page: external-IdP sign-in on Cloud is described as part of the Legacy Enterprise plan by contract (the internal plan names are not used). Group mappings are described as not yet savable on Cloud (cloud#4314 is open).
  • Ordering dependency: "ObjectOS Cloud always requires domain verification" becomes true when cloud PR #4368 (ruling A on cloud#4315) is merged and deployed; it is open today.

Verification

Head bc76778.

type-check (includes check-frontmatter) under the verify lock: exit 0
✓ route data: wrote .route-data/ (pages per locale: en 102, zh-Hans 100, zh-Hant 100, ja 100, de 0, es 0, fr 0, ko 0; English Markdown: 102)
✓ frontmatter valid on 402 pages (negative control refused, as it must be)
os-verify-lock: VERDICT command-exit 0
translation and locale checks
check-translation-ownership: This PR touches 0 translation artifact(s) and 5 other file(s). (exit 0)
gen-zh-hant --check: 117 generated file(s) match the zh-Hans sources byte for byte. (exit 0)
check-translations: exit 0; stale (reported, not blocking): authentication.ja / authentication.zh-Hans / faq.ja / faq.zh-Hans
check-doc-samples: 105 pass · 10 not a spec sample · 0 opted out (exit 0)
browser render (next dev + Chromium)

/docs/configure/sso-okta, /docs/configure/sso-entra-id and /docs/configure/authentication answer 200; both new pages are in the Configure sidebar after Authentication; the anchors the pages link to exist (setup--sso-providers, who-may-sign-up-objectstack-173, certificate-rotation-saml, verify-your-email-domain, multi-factor-authentication-and-assignment). Screenshot of the Entra SAML section checked by eye: tables and numbered steps render.

Not run locally (CI owns them): turbo run build, check-locale-surface, check-positioning, check-search-*, the Worker bundle and smoke steps.


Generated by Claude Code

…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#4 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Hold · 2026-11-12T08:04Z · 先不合并,等托管版的域名校验上了生产

本页写着「ObjectOS Cloud 始终要求域名校验」。这句话要等 cloud PR #4368(cloud#4315)合并,并且部署到生产之后才成立;生产发布本身还要先过 cloud#4370(staging 真实 DNS 校验)和 cloud#4342(打 v* tag)。在这之前合并,页面就会对一条安全边界做出不实的承诺。

另外,以下三项依据的是 4.4.0 框架的 action 和文档(pin c5758b0),不是线上实测:

  • 用 Edit SAML Settings 轮换证书;
  • Entra SAML 的 Map: claim-URI 字段;
  • 把 Entra SAML 的 emailaddress claim 换成 UPN 的建议。

合并前,本 PR 正文里要把这三项标成「按文档,未实测」。

PR 保持 draft。上面的条件满足后,由 cloud#4 席位转为 ready 并合并,然后关闭 cloud#4363。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Superseded by #472, merged as 07d41f8. The hold this PR waited on has lifted and is shipped in production cloud v2.12.0; #472's body has the evidence. main be21a62 deployed: Publish the tested Worker and Smoke-check the live site succeeded. Closing.


Generated by Claude Code

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.

2 participants