Identity Provider
External identity infrastructure that authenticates BookWorm users and provides OAuth-compatible identity verification for protected APIs.
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.
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 / Agent | Role in System | Primary Data Store | Interaction 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 docs | External OAuth/OIDC provider issuing user tokens, agent identities, and verification metadata | External (Provider-managed) | Sync (HTTP / OAuth 2.0 / OIDC) |
External Interactions & Trust Boundaries
- Human sign-in: Customers, Business Users, and Administrators authenticate through Storefront and Backoffice sessions and present bearer tokens to protected BookWorm APIs.
- Service token validation: Product Catalog SystemSystemv1.0.0Product Catalog SystemInternal BookWorm system that owns catalog management, product discovery, and catalog search index ingestion within the ...Ownercatalog-experience-teamDiagramOpen docs, Cart SystemSystemv1.0.0Cart SystemInternal system that owns customer-scoped baskets throughout the pre-order journey, including basket management, Catalog...Ownercommerce-fulfillment-teamDiagramOpen docs, Order SystemSystemv1.0.0Order SystemInternal system that creates and manages accepted customer Orders, preserving purchase-time items and prices while ownin...Ownercommerce-fulfillment-teamDiagramOpen docs, Rating SystemSystemv1.0.0Rating SystemInternal Reviews system that owns customer feedback, publishes rating changes to Catalog, and provides read-time feedbac...Ownercatalog-experience-teamDiagramRepositoryOpen docs, Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs, MCP ToolsSystemv1.0.0MCP ToolsInternal stateless MCP server that exposes read-only Catalog tools and reusable AI prompts to BookWorm AI clients. Ownerai-capabilities-teamDiagramRepositoryOpen docs, and Scheduler SystemSystemv1.0.0Scheduler SystemInternal Quartz-based platform system that persists schedules, coordinates recurring jobs, and dispatches background wor...Ownerplatform-engineering-teamDiagramOpen docs validate issuer, audience, signing keys, expiry, roles, and scopes before executing protected operations.
- Agent delegation: Supports delegated OBO token exchange between Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs, Rating SystemSystemv1.0.0Rating SystemInternal Reviews system that owns customer feedback, publishes rating changes to Catalog, and provides read-time feedbac...Ownercatalog-experience-teamDiagramRepositoryOpen docs, and MCP ToolsSystemv1.0.0MCP ToolsInternal stateless MCP server that exposes read-only Catalog tools and reusable AI prompts to BookWorm AI clients. Ownerai-capabilities-teamDiagramRepositoryOpen docs.
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.Related Documentation
- 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 docs — App roles, service scopes, and Entra Agent Identity details.
- Identity, Entra Agent Identities & RBAC MatrixCustom DocIdentity, Entra Agent Identities & RBAC MatrixReference for Microsoft Entra ID app registrations, Agent Identities for OBO token exchange, and per-service Managed Ide...Ownerplatform-engineering-teamOpen doc — Platform-wide Azure RBAC and Entra ID permissions matrix.
- User CheckoutFlowv1.0.0User CheckoutAn authenticated customer checks out a persisted basket through Ordering API; Finance coordinates asynchronous basket cl...Ownercommerce-fulfillment-teamView flowOpen docs — Authenticated customer checkout flow.
- Product IngestionFlowv1.0.0Product IngestionCatalog API persists product changes in PostgreSQL; Scheduler triggers Catalog Ingestion over Kafka every five minutes t...Ownercatalog-experience-teamView flowOpen docs — Authenticated catalog authoring and scheduled ingestion flow.