Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

External identity infrastructure that authenticates BookWorm users and provides OAuth-compatible identity verification for protected APIs.

External

System Purpose & Boundary

The Identity Provider system is BookWorm’s external authentication and OAuth 2.0 / OpenID Connect (OIDC) boundary, backed by Microsoft Entra ID. It authenticates Customers, Business Users, and Administrators, issues JWT access tokens, and supports On-Behalf-Of (OBO) agent identity delegation across BookWorm services. Owning domain business data and making fine-grained resource authorization decisions are explicitly out of scope—each consuming BookWorm service enforces its own policies and ownership checks.

Warning

Authentication is a prerequisite for protected operations, not a substitute for service-level authorization. Protected BookWorm APIs must fail closed when token validation or provider metadata fails, never falling back to anonymous access.

Contained Capabilities

Service / AgentRole in SystemPrimary Data StoreInteraction Style (Sync / Async)
OAuth APIServicev1.0.0OAuth APIExternal OAuth 2.0 and OIDC identity provider API used by BookWorm clients and services to authenticate users, issue tok...Ownerplatform-engineering-teamDiagramOpen docsExternal OAuth/OIDC provider issuing user tokens, agent identities, and verification metadataExternal (Provider-managed)Sync (HTTP / OAuth 2.0 / OIDC)

External Interactions & Trust Boundaries

System Visualizations

System Context

Component Topology

Architecture Decisions

Architecture Decision Records (5)

Decisions that apply to this Identity Provider. Search, filter by status, or sort by clicking a column.
Summary
ADR-005: Authenticate and govern MCP requestsAcceptedNov 4, 2026The MCP endpoint requires an authenticated caller with the read scope and applies authorization filters and default-deny tool governance.
ADR-001: Keep authentication and identity ownership at the provider boundaryAcceptedNov 2, 2026The external identity provider authenticates users, issues access tokens, and owns provider-side identity records rather than BookWorm business data.
ADR-002: Keep business authorization in consuming servicesAcceptedNov 2, 2026A valid provider-issued identity establishes who is calling, while each BookWorm service decides whether that caller may perform an operation.
ADR-003: Validate tokens and fail closed for protected requestsAcceptedNov 2, 2026Protected APIs accept a token only after validating its issuer, audience, integrity, expiry, and required claims, and reject requests when validation is unavailable.
ADR-004: Protect identity credentials and authentication telemetryAcceptedNov 2, 2026Identity credentials and provider configuration remain secret, while authentication telemetry excludes token contents and unnecessary personal data.