You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tenants list/detail pages call the real API (GET /api/v1/tenants, GET /api/v1/tenants/:id) while auth defaults to mock mode (mock-token-… in sessionStorage). That works today only because TenantController is still unguarded.
When #165 rolls JwtGuard / ScopeGuard / TenantGuard onto those routes, the client will:
attach the fake bearer token
get 401
refresh another fake token
401 again (_retried)
onAuthFailure → mock logout
/tenants will look like it "randomly" signs the user out.
Options (pick one when #165 reaches the tenant surface):
Keep mock mode talking to MSW / a local unguarded fixture, not the live API
Give mock auth a real app-issued token (dev-only client_credentials or a seed user)
Document in apps/ui/README.md that mock + guarded APIs is unsupported and OIDC (VITE_AUTH_MODE=oidc, [UI-02] Login and auth integration #83) is required
Surfaced on #175.
The tenants list/detail pages call the real API (
GET /api/v1/tenants,GET /api/v1/tenants/:id) while auth defaults to mock mode (mock-token-…in sessionStorage). That works today only becauseTenantControlleris still unguarded.When #165 rolls
JwtGuard/ScopeGuard/TenantGuardonto those routes, the client will:_retried)onAuthFailure→ mock logout/tenantswill look like it "randomly" signs the user out.Options (pick one when #165 reaches the tenant surface):
apps/ui/README.mdthat mock + guarded APIs is unsupported and OIDC (VITE_AUTH_MODE=oidc, [UI-02] Login and auth integration #83) is requiredDependencies
Definition of Done