Bỏ qua để đến nội dung

Test cases: Auth & public

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

VersionDate (UTC)Summary
1.0.02026-05-13Initial scenario table + automation hints
1.1.02026-05-13MFA, lockout, refresh rotation, vendor context edge cases

  • Backend: apps/backend/src/modules/auth, JWT issuance for customer/admin/vendor (Authentication).
  • Public: public/* landing settings (throttled).

IDClassScenarioAutomation
TC-AUTH-001HappyCustomer sign-in with valid credentials returns token envelopeE2E*
TC-AUTH-002UnhappyInvalid password → 401, no sensitive hint which field failedUnit + E2E*
TC-AUTH-003UnhappyLocked / disabled account per policyUnit
TC-AUTH-004UnhappyRate limit on login endpoint → 429Unit
IDClassScenarioAutomation
TC-AUTH-010HappyAdmin sign-in valid creds; JWT includes modules or null masterE2E*
TC-AUTH-011UnhappyAdmin MFA required: challenge step before token (if enabled)E2E*
TC-AUTH-012UnhappyWrong modules still issues JWT but catalog APIs 403 — document UXUnit
IDClassScenarioAutomation
TC-AUTH-020HappyVendor login + GET auth/vendor/context resolves stores and prefsUnit + E2E*
TC-AUTH-021HappyRefresh token rotation; old refresh invalidatedUnit
TC-AUTH-022UnhappyExpired refresh → 401; client forces re-loginUnit + E2E*
TC-AUTH-023UnhappyEmployee removed mid-session → next API 403Unit
TC-AUTH-024UnhappyVendor suspended → login or refresh deniedUnit
IDClassScenarioAutomation
TC-PUB-001HappyGET …/public/landing-settings returns JSON within throttle budgetE2E*
TC-PUB-002UnhappyThrottle exceeded → 429Manual / load

  • OAuth / SSO (if added) gets new TC block with happy + unhappy
  • Password reset / OTP flows aligned with Vendor auth and admin equivalent
  • Security review: no tokens in URL logs, HTTPS-only cookies documented

Parent index: System test cases (index)