Commit 18f9713
feat(auth): surface "SSO Providers" in the Setup nav when SSO is enabled (ADR-0024 / cloud#551) (#2389)
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: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 90bce88 commit 18f9713
3 files changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1984 | 1987 | | |
1985 | | - | |
| 1988 | + | |
1986 | 1989 | | |
1987 | 1990 | | |
1988 | 1991 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
203 | 231 | | |
204 | 232 | | |
205 | 233 | | |
| |||
0 commit comments