Skip to content

feat(platform-objects): the Register SSO Provider form names the token, authorization and JWKS endpoints - #33417

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/area-A1-33395
Nov 14, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/area-A1-33395

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #33395

Clause-②: yes (widening) — the register_sso_provider action on sys_sso_provider gains three optional params, authorizationEndpoint, tokenEndpoint and jwksEndpoint (type url), and the object translation bundles gain their label and help-text keys. The register bridge already accepted all three; nothing accepted before is refused now.
Metadata-protocol: none

维护者速读

  • 改了什么:Setup 里「注册 SSO 提供方」表单新增三个可选输入框:Token URL、Authorization URL、JWKS URL,与 Discovery URL / Userinfo URL 并列,按同名字段提交给注册桥接,落进 oidcConfig。
  • 为什么改:Google 这类 IdP 的 token、密钥、userinfo 地址不在 issuer 的域名下,注册会因「不受信任的端点」被拒并提示填写这些字段;fix(plugin-auth)!: the Register SSO Provider bridge takes every endpoint /sso/register takes, and the domain-verification answer carries the registered domain #33314 只让 API 入口收这些字段,表单里没有输入框,不会写代码的管理员仍然注册不了。
  • 风险与回滚:只加三个可选表单参数,留空时什么都不发,已有注册行为不变;回滚即还原 sys-sso-provider.object.ts 并重新生成翻译包。
  • 先看:packages/platform-objects/src/identity/sys-sso-provider.object.ts(三个新参数与帮助文字);packages/plugins/plugin-auth/src/register-sso-provider.test.ts(新 describe:表单参数到 oidcConfig 的钉子);content/docs/permissions/sso.mdx。
  • 两分钟验证:pnpm --filter @objectstack/plugin-auth exec vitest run src/register-sso-provider.test.ts,预期 43 个用例全绿,其中「the Setup form register_sso_provider names each endpoint …」两条通过。
  • 需要你做的:无,席位落地。

What changes

  • Setup form. sys_sso_provider action register_sso_provider gains optional Authorization URL (authorizationEndpoint), Token URL (tokenEndpoint) and JWKS URL (jwksEndpoint) params, type url, between discoveryEndpoint and userInfoEndpoint (the order of the bridge's own endpoint list). Each help text says the endpoint is kept instead of the one the discovery document names, is trusted for this provider, and is to be named when the registration is refused because the discovery document names that endpoint on a host the server does not trust; the token and JWKS texts give Google's URL as the example.
  • Bridge. No change. runRegisterSsoProviderFromForm already carries all five named endpoints into oidcConfig by name (landed in fix(plugin-auth)!: the Register SSO Provider bridge takes every endpoint /sso/register takes, and the domain-verification answer carries the registered domain #33314); the new params reach it under exactly those names, now pinned.
  • Translations. Regenerated with node scripts/check-i18n-bundles.mjs --write --filter=platform-objects (no hand edit). The translated locales carry the English text for the six new keys until translated.
  • Docs. content/docs/permissions/sso.mdx names the four endpoint fields of the Setup form and says a Google registration can fill Token URL, JWKS URL and Userinfo URL there.
  • Changeset. .changeset/33395-sso-form-named-endpoints.md, @objectstack/platform-objects patch.

Tests

  • packages/plugins/plugin-auth/src/register-sso-provider.test.ts, new top-level describe "the Setup form register_sso_provider names each endpoint under the oidcConfig member the bridge carries it to": (1) the form's url params are exactly the five endpoints the bridge takes, each optional; (2) every url param the form posts, driven through runRegisterSsoProviderFromForm, arrives in oidcConfig under its own name. It reads the action from @objectstack/platform-objects (resolved through dist/), so it crosses the form-to-bridge seam.
  • packages/platform-objects/src/platform-objects.test.ts: the existing param-list pin now lists the three new params, and the trusted-endpoint help-text check covers all five endpoints.

Acceptance notes

  • Nothing beyond this card's scope.

Verification

Final head before this PR: 4f536ba5e (main merged at b63c89493.. plus 5 incoming commits; the incoming ones touch plugin-auth files this PR does not).

platform-objects: build, test, typecheck (pre-merge head e890295)
Test Files  122 passed (122)
     Tests  1957 passed (1957)
check:test-typecheck: OK — @objectstack/platform-objects's test layer compiles under packages/platform-objects/tsconfig.test.json
os-verify-lock: VERDICT command-exit 0
plugin-auth: full suite and typecheck (pre-merge head e890295, pin as first written)
Test Files  272 passed (272)
     Tests  5247 passed | 10 skipped (5257)
check:test-typecheck: OK — @objectstack/plugin-auth's test layer compiles under packages/plugins/plugin-auth/tsconfig.test.json
os-verify-lock: VERDICT command-exit 0
After merging main (head 4f536ba): scoped re-run
plugin-auth vitest: register-sso-provider.test.ts, organization-delete-read-fault.test.ts, sso-discovery-companion-origins.test.ts
Test Files  3 passed (3)
     Tests  72 passed (72)
plugin-auth typecheck: check:test-typecheck: OK
platform-objects vitest src/platform-objects.test.ts
Test Files  1 passed (1)
     Tests  156 passed (156)
os-verify-lock: VERDICT command-exit 0
eslint --no-inline-config on the three changed .ts files: exit 0
Ablation A: the form param spelled otherwise (platform-objects source, rebuilt into dist)

ablation-replace.mjs renamed { name: 'tokenEndpoint', label: 'Token URL' to { name: 'tokenUrl', label: 'Token URL' (anchor 1 to 0, blob aaf454730f32 to 3d63005b49ad), then pnpm --filter @objectstack/platform-objects build, then ablation-dist-preflight.mjs @objectstack/platform-objects tokenUrl (marker present in 6 built files), then the pin file:

× offers every endpoint the bridge takes as an optional url param of the same name
× each url param the form posts reaches oidcConfig under its own name
AssertionError: tokenUrl: expected undefined to be 'https://tokenurl.idp.example.com/path'
Test Files  1 failed (1)
     Tests  2 failed | 41 passed (43)
ablation-replace: ok restored: blob == HEAD (aaf454730f32) and `git diff HEAD` is empty

Restore leg: rebuild, ablation-dist-preflight.mjs @objectstack/platform-objects tokenUrl --absent (absent from all 66 built files; working tree clean against HEAD), pin file Tests 43 passed (43).

Ablation B: the bridge pass-through removed (plugin-auth source)

ablation-replace.mjs replaced if (value) oidcConfig[member] = value; with a no-op (anchor 1 to 0, blob dba20122f901 to f696afc0abe1):

× sends userInfoEndpoint in oidcConfig, where the register door trusts its origin, and skipUserInfo at the top level
× sends each named endpoint, trimmed, in oidcConfig under the member of the same name
× each url param the form posts reaches oidcConfig under its own name
Test Files  1 failed (1)
     Tests  3 failed | 40 passed (43)
ablation-replace: ok restored: blob == HEAD (dba20122f901) and `git diff HEAD` is empty
Derived gate families (dispatch-gates --commands at 4f536ba)

98 families derived at 4f536ba; each run with its exit captured before any pipe; dispatch-gates --ran with the exit codes: 98 derived famil(ies) accounted for — 95 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3).

  • 93 exit 0.
  • NOT MEASURED, prerequisite (exit 3): pnpm --filter @objectstack/spec run check:skill-examples (spec declarations not built), pnpm check:dual-build-cjs-loads (workspace not fully built), pnpm check:type-check-debt (its closure build never got a turn on the shared verify lock).
  • NOT MEASURED, stale local build (exit 1, not a finding): pnpm --filter @objectstack/spec run check:docs (refused: packages/spec/json-schema is older than packages/spec/src, a gitignored artifact), and pnpm check:docs-transcript-drift (4 rows, all in docs this PR does not touch, reading the validate rule count 65 from a packages/lint build taken before the merge of main brought feat(lint): advise a template default that reads like a variable path, and a notify node missing a required template variable #33321's two new rules; the docs say 67).
  • Re-running those five needs a rebuild of spec and lint under the shared verify lock; two 9-minute tries (OS_VERIFY_LOCK_SLOT=issue-33395-a1) never acquired it, held throughout by another session's dogfood run (holder pid 20551). They are CI's: Lint & Repo Gates and TypeScript Type Check run each on this PR.

Generated by Claude Code

…uthorization and JWKS endpoints

The register_sso_provider action gains optional Token URL, Authorization URL
and JWKS URL params (type url) beside the discovery and userinfo URLs, each
posted to the register bridge under the oidcConfig member of the same name, so
an identity provider whose endpoints sit on hosts other than its issuer
(Google) registers from Setup. A plugin-auth pin drives the form's url params
through the bridge into oidcConfig.

Claude-Session: https://claude.ai/code/session_016WV4d1NJYFGVi2FRztyBNo
Co-authored-by: Claude <noreply@anthropic.com>
…ndpoint params; docs and changeset

Claude-Session: https://claude.ai/code/session_016WV4d1NJYFGVi2FRztyBNo
Co-authored-by: Claude <noreply@anthropic.com>
…nfig under its own name

Claude-Session: https://claude.ai/code/session_016WV4d1NJYFGVi2FRztyBNo
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects, touching 14 documentable anchor(s).

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/cli.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))
  • content/docs/permissions/authorization.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))
  • content/docs/permissions/sso.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects), authorizationEndpoint (literal, a string literal in actions), jwksEndpoint (literal, a string literal in actions), tokenEndpoint (literal, a string literal in actions))
  • content/docs/permissions/tenant-audit-census.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))
  • content/docs/upgrading.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))
  • content/docs/releases/v17/17-5.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))
  • content/docs/releases/v18/18-0.mdx (via sys_sso_provider (symbol, a field of const object arObjects; a field of const object deObjects; a field of const object enObjects; a field of const object esESObjects; a field of const object frObjects; a field of const object jaJPObjects; a field of const object koObjects; a field of const object ptBRObjects; a field of const object ruObjects; a field of const object zhCNObjects; a field of const object zhHantObjects))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json df9fe9463020a58b29a61f98605b91e7fbb307c1 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from e1dfb03fc8f49545009ea2073917ed54afa1216c — the merge of head 4f536ba5e8ee886a1c8a5eafa59a4919d25395ec into base df9fe9463020a58b29a61f98605b91e7fbb307c1, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e1dfb03fc8f49545009ea2073917ed54afa1216c && git checkout e1dfb03fc8f49545009ea2073917ed54afa1216c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin df9fe9463020a58b29a61f98605b91e7fbb307c1 4f536ba5e8ee886a1c8a5eafa59a4919d25395ec && git checkout -B drift-repro df9fe9463020a58b29a61f98605b91e7fbb307c1 && git merge --no-ff 4f536ba5e8ee886a1c8a5eafa59a4919d25395ec

node scripts/docs-audit/affected-docs.mjs --json df9fe9463020a58b29a61f98605b91e7fbb307c1

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs df9fe9463020a58b29a61f98605b91e7fbb307c1 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Request: review · area A1 · Fixes #33395 · head 4f536ba · requested at 2026-11-14T19:48Z

Local: platform-objects 122 files / 1957 passed; plugin-auth full suite 272 files / 5247 passed at e890295, touched pin files 72/72 after the origin/main merge; typecheck exit 0; eslint exit 0; two ablations (form param renamed: 2 red; bridge pass-through removed: 3 red) in the os-dev report (#33395 comment 6883240624); derived gates 98: 93 exit 0, 5 NOT MEASURED (verify lock held by another session; CI runs them). Declarations: Clause-② yes (widening), Metadata-protocol none.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4d1PGptBW3QRQNmy5e6 · head 4f536ba · 2026-11-14T19:49:29Z

review#3.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 4f536ba5e8ee886a1c8a5eafa59a4919d25395ec
Local-runs: none

① Derived judgments

  • Declaration face. Clause-②: yes (widening) holds. The register_sso_provider action on sys_sso_provider gains three optional url params (authorizationEndpoint, tokenEndpoint, jwksEndpoint). The register bridge already accepted all three (fix(plugin-auth)!: the Register SSO Provider bridge takes every endpoint /sso/register takes, and the domain-verification answer carries the registered domain #33314's OIDC_NAMED_ENDPOINTS), so nothing it accepted before is refused. A blank field sends nothing, so a registration naming none of them posts the body it posted before. Metadata-protocol: none holds too: these are params of a platform-shipped action on a platform object, not a key, value or type a metadata author writes. @objectstack/platform-objects: patch is correct.
  • Wiring. The new pins assert that the form offers every endpoint the bridge takes as an optional url param of the same name, and that each posted param reaches oidcConfig under its own name. Together they tie the form to the bridge's member list, so neither can drift without a red pin. The help texts state the trust consequence and the remedy for discovery_untrusted_origin, matching the refusal text fix(plugin-auth)!: the Register SSO Provider bridge takes every endpoint /sso/register takes, and the domain-verification answer carries the registered domain #33314 introduced.
  • Translations. The generated object bundles and source hashes carry the new label and help-text keys in English until translated, as the changeset says. The diff for each locale is the regenerated keys only.
  • nit N1: the Google example URLs are inside the help texts, so they will be translated along with the prose. Translators should keep the URLs verbatim, and a translator note on those keys would protect them. Optional.

② Semver level

@objectstack/platform-objects: patch, Clause-②: yes (widening), per AGENTS.md (non-protocol change ships patch).

③ Boundary flags

Implemented-by: claude/area-A1-33395
Reviewed-by: session_016WV4d1PGptBW3QRQNmy5e6

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

ACCEPT · area A1 · Fixes #33395 · head 4f536ba · 2026-11-14T20:35Z

  • Reviewer: review#3 (session_016WV4d1PGptBW3QRQNmy5e6) PASS at 4f536ba (record 6883282385), arm read as declared: Clause-② yes (widening), Metadata-protocol none. Nit (translator note to keep the URLs in the help texts verbatim) left for a later touch; not blocking.
  • Governed: check-governed-merges.mjs --pr 33417 → NOT governed, 282 changed lines (≤ 3000).
  • Checks at 4f536ba: 53 check runs completed, none red.
  • Main since the PR's base e0ce1b5: 16 commits, none touching the PR's 26 files.
  • Local: platform-objects 122 files / 1957 passed; plugin-auth 272 files / 5247 passed; two ablations in the os-dev report (Setup: the Register SSO Provider form has no Token, Authorization or JWKS URL fields, so a Google-style IdP still cannot register from the UI #33395 comment 6883240624).
  • Landing: ready + auto-merge (maintainer 2026-11-14 15:21Z).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 20:37
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 3c231cd Nov 14, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-A1-33395 branch November 14, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup: the Register SSO Provider form has no Token, Authorization or JWKS URL fields, so a Google-style IdP still cannot register from the UI

2 participants