mirror of
https://github.com/corazoncp/zoom-sched-poc.git
synced 2026-12-01 04:50:31 +00:00
f0c55c3b062f875841f031473029f8dd53a1e754
- Add tests for malformed and non-dict JSON returning 400 - Add tests for ZoomAPIError status passthrough (401) and RequestException 502 fallback - Add standalone 404 tests for POST /pay and DELETE - Verify DELETE on payment_pending skips Zoom DELETE while DELETE on confirmed invokes Zoom DELETE
zoom-sched-poc
Interactive 3-screen presentation proof-of-concept for El Corazón como Portal demonstrating Zoom Server-to-Server OAuth scheduling gated by payment confirmation.
Features
- 3-screen presentation flow with automatic smooth scrolling:
- Configuración (Servidor): Validates Zoom Server-to-Server OAuth credentials in memory (
SecretStrin Pydantic; never persisted to SQLite or disk). - Solicitar una Cita (Como cliente): Checks Zoom upcoming meetings for conflicts (
GET /v2/users/me/meetings), then creates apayment_pendingappointment in SQLite and returnssession_id+payment_id. - Buscar Sesión: Looks up
session_idorpayment_id, simulates payment confirmation, provisions the Zoom meeting (POST /v2/users/me/meetings), and displays session links idempotently on repeat lookups.
- Configuración (Servidor): Validates Zoom Server-to-Server OAuth credentials in memory (
- Brute-force protection:
Flask-Limiterper-IP rate limits (withProxyFixfor Traefik) and 40-bit randomses_/pay_IDs.
Local Development
uv sync
uv run flask --app "app:create_app()" run --debug --port 8000
Run tests:
uv run pytest
Single-Container Docker Run
docker build -t zoom-sched-poc .
docker run -p 8000:8000 -v zoom_sched_data:/app/data zoom-sched-poc
Languages
Python
74.6%
HTML
18.7%
CSS
5.8%
Dockerfile
0.9%