Development¶
Replacing the in-memory stubs¶
UserQueryService and UserManagementService use InMemoryUserStore. To go live:
- Implement API-backed versions calling the
"IdentityApi"HttpClient. - Re-register them in
Program.cs(this template wires DI inline - there is noServiceCollectionExtensions). - Use the
ConnectSoft.IdentityTemplate.ServiceModelDTOs 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 forUserQueryService,UserManagementService,RoleManagementService,UserRoleService,UserClaimsService.