Skip to content

feat(auth): surface "SSO Providers" in the Setup nav when SSO is enabled (ADR-0024 / cloud#551)#2389

Merged
os-zhuang merged 1 commit into
mainfrom
adr-0024-sso-nav
Jun 27, 2026
Merged

feat(auth): surface "SSO Providers" in the Setup nav when SSO is enabled (ADR-0024 / cloud#551)#2389
os-zhuang merged 1 commit into
mainfrom
adr-0024-sso-nav

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Final A5 polish for cloud#551 — adds an 'SSO Providers' entry to Setup → Access Control, gated on AuthManager.isSsoWired() (self-host OS_SSO_ENABLED + cloud per-env planAllowsSso). The register form (form#2386 bridge) renders all fields and posts 200. List view empty is a pre-existing better-auth-managed-object data-API behavior (sys_oauth_application/sys_account already in nav read total:0 too) — separate follow-up. Verified via browser E2E.

🤖 Generated with Claude Code

…led (ADR-0024 / cloud#551)

The sys_sso_provider admin object (register/list/delete external OIDC IdPs) had
no nav entry — reachable only by direct URL. AuthPlugin now contributes an
"SSO Providers" entry into the Setup app's Access Control group, gated on
AuthManager.isSsoWired() (captures self-host OS_SSO_ENABLED + cloud per-env
planAllowsSso via plugins.sso) so it never renders when the RP is off.
Owning-plugin-contributes pattern (ADR-0029 K2), mirrors plugin-security.
isSsoWired() made public for the gate.

Verified: entry appears under Setup → Access Control when SSO on; the register
form renders all fields (incl. discoveryEndpoint/scopes/mapping) and posts to
the bridge (200). (The list view shows empty for now — a pre-existing platform
behavior shared by all better-auth-managed objects, e.g. OAuth Applications /
Identity Links already in nav read 0 via the data API; separate follow-up.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 27, 2026 4:36pm

Request Review

@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling labels Jun 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-auth.

10 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/concepts/implementation-status.mdx (via @objectstack/plugin-auth)
  • content/docs/concepts/packages.mdx (via @objectstack/plugin-auth)
  • content/docs/getting-started/cli.mdx (via @objectstack/plugin-auth)
  • content/docs/guides/auth-sso.mdx (via @objectstack/plugin-auth)
  • content/docs/guides/authentication.mdx (via @objectstack/plugin-auth)
  • content/docs/guides/kernel-services.mdx (via @objectstack/plugin-auth)
  • content/docs/guides/packages.mdx (via @objectstack/plugin-auth)
  • content/docs/guides/plugins.mdx (via @objectstack/plugin-auth)
  • content/docs/guides/production-readiness.mdx (via @objectstack/plugin-auth)
  • content/docs/releases/v9.mdx (via @objectstack/plugin-auth)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuang
os-zhuang merged commit 18f9713 into main Jun 27, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the adr-0024-sso-nav branch June 27, 2026 16:36
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/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant