Enterprise and Military Grade Identity Verification Platform
Comprehensive system design, database schemas, and infrastructure breakdown
Platform Operators
Table: gg-profiles (userType: SYSTEM_ADMIN)
Organization Administrators
Table: gg-profiles (userType: TENANT_ADMIN)
End-Users (Widget)
Table: gg-external-profiles
Purpose: System Admins and Tenant Admins
profileId (PK) - UUIDtenantId - Tenant associationemail - User emailuserType - SYSTEM_ADMIN | TENANT_ADMINfirstName, lastName, mobileverificationStatus - PENDING | VERIFIED | REJECTEDverifiedFactors[] - Array of completed factorsPurpose: End-users verified through widget
externalProfileId (PK) - UUIDtenantId - Tenant isolationemail, mobile, fullNameverificationStatusverifiedFactors[] - EMAIL, MOBILE, FACE, DOCUMENTapplicationAccess[] - Array of app permissionssessionId - Links to widget sessionPurpose: Tenant organizations
Purpose: API keys per tenant
Purpose: Fraud detection cases
Purpose: Security audit trail
{
// Standard Claims
"sub": "profileId or externalProfileId",
"email": "user@example.com",
"iat": 1234567890,
"exp": 1234571490,
// Custom Claims (CRITICAL)
"custom:tenantId": "tenant-uuid",
"custom:userType": "SYSTEM_ADMIN | TENANT_ADMIN | EXTERNAL_USER",
"custom:verificationStatus": "VERIFIED"
}
jwt.tenantId === resource.tenantIdSingle Cognito User Pool
7 DynamoDB Tables
3 Private S3 Buckets
API Gateway + 59 Lambdas
Async Fraud Detection
EventBridge Bus
Dashboard
↓
Cognito (email verification)
↓
Lambda Signup
↓
DynamoDB Profiles
↓
SQS Fraud Queue
Widget SDK
↓
API Gateway
↓
Lambda Widget
↓
DynamoDB External Profiles
↓
SQS Fraud Queue
SQS Queue → Lambda Fraud → GSI Query (Hash Indexes) → Rekognition CompareFaces
↓
Fraud Cases + Audit Logs