Session

Supporting domain managing OAuth-based authentication and session lifecycle. Provides authenticated User identity to other bounded contexts via Shared Kernel pattern.

Domain

Overview

The Session bounded context handles authentication through OAuth providers (GitHub primary, Google planned). Sessions follow a strict lifecycle: create -> active -> expired/invalidated.

Strategic Classification

Supporting Domain: Enables core business capabilities by providing secure authentication infrastructure.

Key Aggregates

  • Session: Manages session lifecycle with TTL-based expiration

Shared Kernel Exports

  • UserId: User identity combining OAuth provider and external ID (consumed by Workspace)
  • SessionId: Reference type for session identification

Zenoh Channel

Events published to: events/session/**