Skip to content

Development

Replacing the in-memory stubs

UserQueryService and UserManagementService use InMemoryUserStore. To go live:

  1. Implement API-backed versions calling the "IdentityApi" HttpClient.
  2. Re-register them in Program.cs (this template wires DI inline - there is no ServiceCollectionExtensions).
  3. Use the ConnectSoft.IdentityTemplate.ServiceModel DTOs for request/response shapes.

Adding a page

Add a Razor page under Pages/ with its @page route (follow Users.razor/UserEdit.razor), gate it with AdminOnly/UserManager/RoleManager as appropriate, and respect the relevant FeatureFlags.

Render model

This is Blazor Server (AddInteractiveServerComponents) despite the README's "WebAssembly" wording - build interactive components for server interactivity.

Testing

  • Unit (...UnitTests): bUnit page tests (UsersPageTests, RolesPageTests) + RequestValidationTests.
  • Integration (...IntegrationTests): WireMock.Net stubs the Identity API for UserQueryService, UserManagementService, RoleManagementService, UserRoleService, UserClaimsService.

See also