Commit d2bdab2
test(plugin-auth): register the production object set in the two SCIM harnesses (#14751)
Both SCIM harnesses re-spelled plugin-auth's object set by hand and omitted
every OAuth object, so the oauth-provider's `session.delete.before` hook —
which reads `sys_oauth_access_token` and `sys_oauth_refresh_token` by
`sessionId` on every session revocation — hit tables that were never created
and logged a Better Auth ERROR on a green run.
Import `authIdentityObjects` from the plugin's own manifest instead of
re-spelling it. That is the same array `auth-plugin.ts` registers at runtime
and `objectstack.config.ts` declares at compile time, so the harness cannot
drift from a real deployment by construction.
Claude-Session: https://claude.ai/code/session_01AUF1NoViznQK32gqpK8wS8
Co-authored-by: Claude <noreply@anthropic.com>1 parent 89a156a commit d2bdab2
2 files changed
Lines changed: 19 additions & 81 deletions
File tree
- packages/plugins/plugin-auth/src
Lines changed: 12 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 64 | | |
| 65 | + | |
85 | 66 | | |
86 | 67 | | |
87 | 68 | | |
| |||
102 | 83 | | |
103 | 84 | | |
104 | 85 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
126 | 97 | | |
127 | 98 | | |
128 | 99 | | |
| |||
Lines changed: 7 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 57 | | |
| 58 | + | |
78 | 59 | | |
79 | 60 | | |
80 | 61 | | |
| |||
92 | 73 | | |
93 | 74 | | |
94 | 75 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
115 | 82 | | |
116 | 83 | | |
117 | 84 | | |
| |||
0 commit comments