Commit 0b45726
authored
fix: update the token exchange profiles handling (#1253)
* fix: update token exchange profiles schema and handling
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: remove unnecessary fields from schema
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: adjust fields to strip during updates and creations
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: sanitize profiles before processing changes
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: ensure required fields are validated during profile creation
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: simplify update logic by removing unused fields
* fix: enhance token exchange profiles validation and error handling
- test/tools/auth0/handlers/tokenExchangeProfiles.tests.js: add checks for undefined fields in token exchange profile creation
- test/tools/auth0/handlers/tokenExchangeProfiles.tests.js: implement error handling for missing required fields during profile creation
* fix: update token exchange profiles handling and validation
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: change actions type from Asset to Action
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: update identifiers to use subject_token_type
- src/tools/auth0/handlers/tokenExchangeProfiles.ts: ensure actions are fetched only if not already available
* fix: update token exchange profile handling in tests
- test/tools/auth0/handlers/tokenExchangeProfiles.tests.js: rename test to reflect update behavior
- test/tools/auth0/handlers/tokenExchangeProfiles.tests.js: modify update function to include execution order tracking
- test/tools/auth0/handlers/tokenExchangeProfiles.tests.js: update expectation to match new execution order1 parent fffdcf8 commit 0b45726
3 files changed
Lines changed: 82 additions & 47 deletions
File tree
- src/tools/auth0/handlers
- test/tools/auth0/handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 33 | | |
47 | 34 | | |
48 | 35 | | |
| |||
51 | 38 | | |
52 | 39 | | |
53 | 40 | | |
54 | | - | |
| 41 | + | |
55 | 42 | | |
56 | 43 | | |
57 | 44 | | |
58 | 45 | | |
59 | 46 | | |
60 | 47 | | |
61 | | - | |
| 48 | + | |
62 | 49 | | |
63 | | - | |
64 | | - | |
| 50 | + | |
| 51 | + | |
65 | 52 | | |
66 | 53 | | |
67 | 54 | | |
68 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
| |||
126 | 116 | | |
127 | 117 | | |
128 | 118 | | |
129 | | - | |
| 119 | + | |
130 | 120 | | |
131 | 121 | | |
132 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
133 | 125 | | |
134 | 126 | | |
135 | 127 | | |
| |||
150 | 142 | | |
151 | 143 | | |
152 | 144 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 145 | | |
168 | | - | |
| 146 | + | |
169 | 147 | | |
170 | 148 | | |
171 | 149 | | |
172 | 150 | | |
173 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
174 | 157 | | |
175 | 158 | | |
176 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
177 | 162 | | |
178 | 163 | | |
179 | 164 | | |
180 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
181 | 168 | | |
182 | 169 | | |
183 | 170 | | |
184 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
185 | 174 | | |
186 | 175 | | |
187 | 176 | | |
188 | 177 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
| 213 | + | |
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
268 | 272 | | |
269 | 273 | | |
270 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
271 | 298 | | |
272 | 299 | | |
273 | 300 | | |
| |||
358 | 385 | | |
359 | 386 | | |
360 | 387 | | |
361 | | - | |
| 388 | + | |
362 | 389 | | |
363 | 390 | | |
364 | 391 | | |
365 | 392 | | |
366 | 393 | | |
367 | 394 | | |
368 | 395 | | |
369 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
370 | 400 | | |
371 | 401 | | |
372 | 402 | | |
| |||
417 | 447 | | |
418 | 448 | | |
419 | 449 | | |
420 | | - | |
| 450 | + | |
421 | 451 | | |
422 | 452 | | |
423 | 453 | | |
| |||
0 commit comments