Identity.Base Docs

Sample Apps

The upstream repository includes several sample apps that demonstrate the supported integration shapes. Use them as reference implementations, not as production scaffolding to copy blindly.

Sample Purpose
apps/sample-apiSmall protected ASP.NET API consuming Identity Base tokens.
apps/sample-clientMinimal React SPA exercising PKCE login against the host.
apps/org-sample-apiMulti-organization sample host using core, roles, admin, and organizations.
apps/org-sample-clientReact SPA for registration, org dashboard, invitations, and organization context switching.
apps/Samples.AppHostAspire host that runs the sample landscape together.

Best starter combinations

  • Basic SPA auth: `Identity.Base.Host` + `apps/sample-client`.
  • Protected API: `Identity.Base.Host` + `apps/sample-api` using `Identity.Base.AspNet`.
  • Multi-org SaaS: `apps/org-sample-api` + `apps/org-sample-client`.
  • Full local playground: `apps/Samples.AppHost`.

Why these samples matter

  • The samples show the actual OpenIddict client IDs, redirect URIs, and scope strings used by the upstream project.
  • `org-sample-api` demonstrates the package composition most teams eventually need in production.
  • `org-sample-client` shows how `X-Organization-Id` and invitation claim flows behave in a real SPA.