Commit 119e6dc
authored
fix: skip inline auth check in GetTenantProvisioningStatus when no claims present (#1297)
GetTenantProvisioningStatus had an inline auth check that returned
codes.Unauthenticated when no claims existed in context. In the unified
binary (dev/CI mode) without auth middleware, claims are never present,
so this endpoint always returned Unauthenticated. The frontend's global
401 handler (added in #1280) caught this and called logout(), redirecting
all tenant detail page E2E tests to the login screen.
The fix skips the authorization check when no claims are in context,
consistent with other tenant endpoints like RetrieveTenant. Auth
enforcement is handled by middleware when configured.
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>1 parent 192de5e commit 119e6dc
2 files changed
Lines changed: 24 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
587 | 589 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
596 | 603 | | |
597 | | - | |
598 | | - | |
| 604 | + | |
599 | 605 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
| 606 | + | |
| 607 | + | |
604 | 608 | | |
605 | 609 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | 610 | | |
612 | 611 | | |
613 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
| 1564 | + | |
1564 | 1565 | | |
1565 | 1566 | | |
1566 | | - | |
| 1567 | + | |
1567 | 1568 | | |
1568 | 1569 | | |
1569 | 1570 | | |
1570 | 1571 | | |
1571 | | - | |
| 1572 | + | |
1572 | 1573 | | |
1573 | 1574 | | |
1574 | 1575 | | |
1575 | | - | |
1576 | | - | |
| 1576 | + | |
1577 | 1577 | | |
1578 | 1578 | | |
1579 | 1579 | | |
| |||
0 commit comments