2.1 KiB
2.1 KiB
Staff and superadmin authentication
Scope: admin.staffUser.login, superadmin.auth.login/me, staff auth contexts and route guards. Fixtures: admin A/B, supported roles, superadmin.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| SAUTH-01 | P0 | Login regional staff on native/admin-web. | Correct identity, role and assigned region; scoped dashboard loads. |
| SAUTH-02 | P0 | Login superadmin; open protected dashboard directly. | Correct superadmin session; authorized global configuration available. |
| SAUTH-03 | P1 | Reload/cold-start, logout, login another region's staff. | Session persists only while valid; prior regional/private data cleared. |
| SAUTH-04 | P0 | Invalid username/password, empty or malformed input. | No session; safe error; retry works. |
| SAUTH-05 | P0 | Customer token on staff routes; staff token on superadmin routes. | Server denial; hidden navigation alone is not proof. |
| SAUTH-06 | P0 | Staff removed/reassigned while old session is open. | Subsequent access reflects current identity/region, not stale JWT assignment. |
| SAUTH-07 | P0 | Tampered JWT, role or region claims; expired token. | Rejected; no fallback to an arbitrary region. |
| SAUTH-08 | P0 | Missing/deleted staff role or region reference. | Safe denial rather than global/unscoped access. |
| SAUTH-09 | P1 | Browser storage corrupt/missing; native restoration incomplete. | Login recovery without crash or privileged transient render. |
| SAUTH-10 | P1 | Slow/double login, logout during pending request. | No late response silently restores unwanted session. |
| SAUTH-11 | P0 | Protected direct links/back history after logout. | APIs and content remain inaccessible. |
| SAUTH-12 | P2 | Keyboard/password visibility toggle and accessible errors. | Password protected; input usable on each platform. |
| SAUTH-13 | P1 | Same identity uses native/web simultaneously. | Region/role agreement; supported session behavior documented. |
| SAUTH-14 | P0 | Login response/log inspection. | No password hashes or signing secrets exposed. |
See authorization for the complete role matrix.