- Add unit tests for auth security, pricing engine, and schema validations - Add API integration tests across auth, cart, checkout, admin, and webhooks - Setup pytest fixtures in conftest.py with mock DB and services - Configure automatic test status and coverage badge updates in README.md |
||
|---|---|---|
| .. | ||
| MANUAL_SETUP_GUIDE.md | ||
| README.md | ||
| accupedia_db_v5.sql | ||
| implementation_plan.md | ||
| schema.md | ||
README.md
AccuPedia Auth Feature
Bounded-context authentication/identity package for the four-schema database.
Routes
POST /auth/registerPOST /auth/loginGET /auth/meGET /auth/profilePUT /auth/profilePOST /auth/change-passwordPOST /auth/forgot-passwordPOST /auth/reset-password
GET /auth/me and GET /auth/profile return identity + roles only.
Subscription, entitlement and unlocked-module state are intentionally excluded.
Use GET /access/me for access state.
Persistence ownership
This package uses only auth-owned models:
auth.app_usersauth.rolesauth.user_rolesauth.password_reset_otps
No content/commerce query is performed by the auth repository.
Passwords
bcrypt only. No SHA/PBKDF2 backward compatibility.
OTP
- cryptographically generated 6-digit code
- 15 minute validity
- previous unused OTPs invalidated
- account-enumeration-safe forgot-password response
- email adapter:
app.services.email.send_password_reset_email