How ogticrd/cuenta-unica-registry works
Main Components
a. Client-Side Layer:
• Next.js Frontend (src/app/[lang]/)
• Material UI Components (src/components/)
• Client-side Actions (src/actions/)
• Internationalization System (src/dictionaries/)
b. Server-Side Layer:
• Next.js API Routes (src/app/api/)
• Authentication & Authorization
• Middleware Layer (src/middlewares/)
c. External Services Integration:
• Ory Kratos (IAM)
• Amazon Rekognition Face Liveness
• reCAPTCHA Enterprise
• JCE API (Citizen Identity Verification)
• X-Road Integration
• Email Service
d. Infrastructure Layer:
• Google Cloud Platform
• Docker Containerization
• CI/CD Pipeline (GitHub Actions)
┌─ Client Layer ─────────────────────────────┐
• Next.js Pages │
• Material UI Components │
• Client-side Actions │
• i18n Support │
• ┬───────────────────────┘
• ↓
┌─ Server Layer ────────────────────────────┐
• API Routes │
• Server Actions │
• Middleware │
• ┬───────────────────────┘
• ↓
┌─ External Services ─────────────────────────┐
• Ory Kratos (IAM) │
• Amazon Rekognition │
• reCAPTCHA Enterprise │
• JCE API │
• ┘
Flow Representation
• Identity Verification Flow (Blue)
• Liveness Detection Flow (Green)
• Account Creation Flow (Orange)
• Authentication Flow (Purple)
Key Elements to Highlight
a. Security Components:
• reCAPTCHA Integration
• Password Validation (NIST 800-63B)
• Biometric Verification
b. Integration Points:
• External API Connections
• Identity Management System
• Cloud Services
c. Infrastructure Components:
• Docker Containers
• Cloud Run Services
• CI/CD Pipeline
Specific Implementation Details
Technical annotations for:
• TypeScript Implementation
• Next.js Server Components
• Material UI Theming
• Internationalization Support
• Environment Configurations