How salimnura77/tid-backend works
TrueID is a consent-first identity backend: an authenticated user creates or resumes an account, completes a verification, and can issue or manage credentials; a partner can request verification metadata only after an invitation and explicit user approval. The graph also preserves partner credential permissions, pairwise identifiers, consent history, health, and the prepared-but-disabled Monnify boundary. Evidence is limited to the README and shown/indexed source; credentials are documented but their source directory is absent from the supplied tree.
Main entry points: consent.service.ts Consent workflow · app.module.ts App composition · verification.service.ts Verification service · partners.service.ts Partner registry
Components 25
API and authentication
- HTTP setup
src/http/configure-http.ts - Auth guard
src/auth/auth.guard.ts - Auth0 verifier
src/auth/auth0-token-verifier.ts
Identity workflows
- Account routes
src/users/users.controller.ts - Account access
src/users/account-access.service.ts - Verification routes
src/verification/verification.controller.ts - Verification service
src/verification/verification.service.ts - Provider boundary
src/verification/verification.provider.ts - QoreID adapter
src/verification/qoreid-provider.ts - Monnify adapter
src/verification/monnify-provider.ts - Credential lifecycle
Partner consent
- Partner registry
src/partners/partners.service.ts - Consent routes
src/consent/consent.controller.ts - Consent workflow
src/consent/consent.service.ts - Consent records
src/consent/consent.repository.ts
Platform services
- App composition
src/app.module.ts - Lifecycle audit
src/audit/audit.service.ts - Database service
src/database/database.service.ts - Runtime configuration
src/config/runtime-config.ts - Health routes
src/health/health.controller.ts
Other components
- Mobile user
- Partner client
- Auth0 tenant
- QoreID Test
- PostgreSQL
Connections 33
- App composition → Auth guard: registers
src/app.module.ts - App composition → Account routes: registers
src/app.module.ts - App composition → Verification routes: registers
src/app.module.ts - App composition → Partner registry: registers
src/app.module.ts - App composition → Consent routes: registers
src/app.module.ts - App composition → Lifecycle audit: registers
src/app.module.ts - Mobile user → HTTP setup: sends requests
README.md - Partner client → HTTP setup: sends requests
README.md - HTTP setup → App composition: starts application
src/main.ts - Auth guard → Auth0 verifier: verifies token
src/auth/auth.guard.ts - Auth guard → Partner registry: authenticates partner
src/auth/auth.guard.ts - Auth0 tenant → Auth0 verifier: issues tokens
README.md - Account routes → Account access: resolves account
src/users/account-access.service.ts - Verification routes → Verification service: dispatches
src/verification/verification.controller.ts - Verification service → Account access: checks ownership
src/verification/verification.service.ts - Verification service → Provider boundary: uses provider
src/verification/verification.service.ts - Verification service → Credential lifecycle: enables issuance
README.md - Provider boundary → QoreID adapter: selects provider
- QoreID adapter → QoreID Test: calls verification
README.md - Provider boundary → Monnify adapter: selects provider
- Partner registry → PostgreSQL: queries partner data
src/partners/partners.service.ts - Consent routes → Consent workflow: dispatches
src/consent/consent.controller.ts - Consent workflow → Account access: checks account
src/consent/consent.service.ts - Consent workflow → Partner registry: checks partner
src/consent/consent.service.ts - Consent workflow → Consent records: reads and writes
src/consent/consent.service.ts - Consent workflow → Credential lifecycle: checks credential
src/consent/consent.service.ts - Consent workflow → Lifecycle audit: records events
src/consent/consent.service.ts - Consent workflow → Partner client: returns disclosure
README.md - Consent records → PostgreSQL: queries consent data
src/consent/consent.repository.ts - Lifecycle audit → PostgreSQL: writes audit events
src/audit/audit.service.ts - Database service → PostgreSQL: manages connections
src/database/database.service.ts - Database service → Runtime configuration: uses settings
src/database/database.service.ts - Health routes → Database service: checks readiness
src/health/health.controller.ts