Skip to main content

Identity Service Architecture

The Identity Service handles all authentication, user management, and authorization concerns.

Module Structure

Key Responsibilities

  • OAuth 2.0 / OIDC authentication (Google, GitHub, Microsoft)
  • AWS Cognito integration for credential management
  • JWT token issuance and refresh
  • Multi-tenant context (tenant switching)
  • RBAC role and permission management
  • User preferences (timezone, theme, notifications)

Guards & Middleware

GuardPurpose
JwtAuthGuardValidates JWT signature and expiry
TenantGuardExtracts and validates tenant context
RolesGuardEnforces role-based access
PermissionsGuardEnforces granular permissions