Commit 0afe257
authored
feat(auth): add tenant boundaries to auth GraphQL resolvers (#3697)
* feat(auth): add migration to seed operators api secret
* feat(auth): propagate apiSecret during tenant creation
* test(auth): update api secret tests & tableManager
* chore(localenv): update ADMIN_API_SECRET in docker compose files
* chore(bruno): update authApiSignatureSecret in requests
* feat(auth): add getTenantFromApiSignature middleware
* chore(auth): move tenant signature functions to separate file
* feat(auth): update authed tenant middleware, and add tests
* test(backend): update tenant test
* chore(testenv): add ADMIN_API_SECRET to auth
* feat(backend): call the auth service client if apiSecret has been updated
* test(auth): update tenant signature test name
* feat(auth): update tenant response from auth api to include the apiSecet
* test(auth): pull out apolloClient creation from test app
* feat(auth): add tenantId to GraphQL schema
* feat(auth): add tenant boundaries to resolvers
* feat(auth): disconnect from redis on app shutdown
* test(auth): add additional tests for tenant signature verification1 parent 0c08e41 commit 0afe257
File tree
9 files changed
+595
-120
lines changed- packages/auth/src
- grant
- graphql
- generated
- resolvers
- tests
9 files changed
+595
-120
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
320 | 337 | | |
321 | 338 | | |
322 | 339 | | |
| |||
423 | 440 | | |
424 | 441 | | |
425 | 442 | | |
| 443 | + | |
426 | 444 | | |
427 | 445 | | |
428 | 446 | | |
429 | 447 | | |
430 | | - | |
| 448 | + | |
| 449 | + | |
431 | 450 | | |
432 | | - | |
433 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
434 | 461 | | |
435 | 462 | | |
436 | | - | |
437 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
438 | 470 | | |
439 | 471 | | |
440 | 472 | | |
| |||
542 | 574 | | |
543 | 575 | | |
544 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
545 | 589 | | |
546 | 590 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
123 | | - | |
| 127 | + | |
| 128 | + | |
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| |||
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
137 | | - | |
138 | | - | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | | - | |
146 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
147 | 161 | | |
148 | 162 | | |
149 | 163 | | |
| |||
307 | 321 | | |
308 | 322 | | |
309 | 323 | | |
310 | | - | |
| 324 | + | |
| 325 | + | |
311 | 326 | | |
312 | 327 | | |
313 | 328 | | |
| |||
334 | 349 | | |
335 | 350 | | |
336 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
337 | 356 | | |
338 | 357 | | |
339 | 358 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments