acupedia-api/docs
Urvish Prajapati 95a5f424ae test: add comprehensive pytest suite and auto-updating test badges
- 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
2026-10-19 11:46:14 +05:30
..
MANUAL_SETUP_GUIDE.md Updated serach fix 2026-09-26 22:13:04 +05:30
README.md Updated serach fix 2026-09-26 22:13:04 +05:30
accupedia_db_v5.sql Updated serach fix 2026-09-26 22:13:04 +05:30
implementation_plan.md test: add comprehensive pytest suite and auto-updating test badges 2026-10-19 11:46:14 +05:30
schema.md Init Api 2026-09-05 19:29:21 +05:30

README.md

AccuPedia Auth Feature

Bounded-context authentication/identity package for the four-schema database.

Routes

  • POST /auth/register
  • POST /auth/login
  • GET /auth/me
  • GET /auth/profile
  • PUT /auth/profile
  • POST /auth/change-password
  • POST /auth/forgot-password
  • POST /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_users
  • auth.roles
  • auth.user_roles
  • auth.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