Admin CRM — Auth Use Cases
A. Document controlA. Kiểm soát tài liệu
| Doc ID | CPG-UC-CPG-CRM_UC_Auth |
|---|---|
| VersionPhiên bản | 1.0 |
| StatusTrạng thái | Draft |
| Owner | CPG BA / Architecture |
| AudienceĐối tượng | BA, QA, Product, Frontend, Backend |
| ClassificationPhân loại | Internal |
| Effective dateNgày hiệu lực | 01/12/2026 |
| Related docs | CRM Auth TC · CRM Auth FSD |
B. Version historyB. Lịch sử phiên bản
| Version | Date | Author | ChangesThay đổi |
|---|---|---|---|
| 1.0 | 01/12/2026 | Khoa Trinh | Version 1.0 |
C. Table of contentsC. Mục lục
D. ContentD. Nội dung
Catalog
| UC ID | Name | Linked TC count | Categories |
|---|---|---|---|
| UC-AUTH-01 | Login with valid credentials (no 2FA) | 12 | Function, Security, Validation |
| UC-AUTH-02 | Login with valid credentials (2FA enabled) | 1 | Security |
| UC-AUTH-03 | Forgot password | 2 | Function |
Use cases
UC-AUTH-01 — Login with valid credentials (no 2FA)
- Actor: Admin CRM user (role per RBAC)
- Goal: Login with valid credentials (no 2FA)
- Primary BR (from TC): 3.1.1
Linked test cases
AUTH-LOGIN-001— Login with valid credentials (no 2FA) (Function)AUTH-LOGIN-003— Force user to change pwd at first time login (Security)AUTH-LOGIN-004— Login with invalid password (Security)AUTH-LOGIN-005— Login with unregistered email (Function)AUTH-LOGIN-006— Email validation – invalid format (Validation)AUTH-LOGIN-007— Required fields validation – empty email (Validation)AUTH-LOGIN-008— Required fields validation – empty password (Validation)AUTH-LOGIN-009— Password masking (Security)AUTH-LOGIN-010— Remember me unchecked default (Function)AUTH-LOGIN-011— Remember me persists session (Function)AUTH-LOGIN-012— Login button disabled while processing (Function)AUTH-LOGIN-013— Rate limiting / brute force protection (Security)
Representative preconditions
None
Representative main flow
Open Sign In
Expected outcome
Remember me is unchecked by default (if design requires)
UC-AUTH-02 — Login with valid credentials (2FA enabled)
- Actor: Admin CRM user (role per RBAC)
- Goal: Login with valid credentials (2FA enabled)
- Primary BR (from TC): 3.1.2
Linked test cases
AUTH-LOGIN-002— Login with valid credentials (2FA enabled) (Security)
Representative preconditions
User exists, 2FA enabled
Representative main flow
Open Sign In -> Enter email/password -> Click Sign In
Expected outcome
2FA modal appears; user is NOT logged in yet
UC-AUTH-03 — Forgot password
- Actor: Admin CRM user (role per RBAC)
- Goal: Forgot password
- Primary BR (from TC): 3.1.3
Linked test cases
AUTH-LOGIN-014— Forgot password (Function)AUTH-LOGIN-015— Reset password (Function)
Representative preconditions
User exists, received email with reset password link
Representative main flow
Click on Reset password link -> Enter new password -> Use new password to sign in
Expected outcome
Password change successful, Can sign in with new password