Commit 911da5f
refactor(plugin-auth): remove the inert AUTH_SCIM_PROVIDER_SCHEMA export (#12008)
`AUTH_SCIM_PROVIDER_SCHEMA` was a publicly exported `scimProvider` column
mapping with zero consumers -- exactly one repo-wide hit, its own declaration
-- and inert by construction: `@better-auth/scim` hardcodes its model and
exposes no `schema` option (still true of the installed
`@better-auth/scim@1.7.0-rc.1`, whose `SCIMOptions` declares no `schema` /
`modelName` / `fields` member), so there was nowhere to hand it.
Removed under ADR-0049 enforce-or-remove: it was a second source of truth for
the four SCIM column names, where the load-bearing one is the adapter layer
(`AUTH_MODEL_TO_PROTOCOL` + camelCase-to-snake_case field resolution in
`objectql-adapter.ts`) over the `sys_scim_provider` platform object. A dead
copy cannot fail when it drifts, and the next reader cannot tell which of the
two is authoritative. A NOTE in its place records why no mapping exists and
what owns the names instead, following the sibling sso NOTE in the same file.
Fixes #11777
Claude-Session: https://claude.ai/code/session_01APWX2AwT3a4xDcjPCe8bk4
Co-authored-by: Claude <noreply@anthropic.com>1 parent aa0688a commit 911da5f
2 files changed
Lines changed: 30 additions & 31 deletions
File tree
- .changeset
- packages/plugins/plugin-auth/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
1014 | 1000 | | |
1015 | 1001 | | |
1016 | 1002 | | |
| |||
0 commit comments