Development¶
Build and run¶
With SelfServiceAuthentication.Enabled = false (default), an AnonymousAuthenticationStateProvider is used so you can run without an IdP.
Configure scope and editing¶
EcsConfigurationApi.BaseUrl- the ECS config API.SelfServiceConfigurations.UserAssignmentsScope- drivesAssignedConfigurationFilterso users see only their assigned configs.SelfServiceConfigurationEdit.AllowScopeEdit- enables editing alongside theCanEditConfigurationspolicy.SelfServiceAuthentication- turn on WASM OIDC;SelfServiceEcsApiAccessTokenHandlerthen forwards tokens to ECS APIs.
Services¶
SelfServiceUserContext exposes the current user/scope; ConfigurationJsonSyntaxFormatter formats config JSON for display; ConfigurationValueDisplay renders values. Keep new config calls on UserConfigurationsApiClient / UserConfigurationVersionsApiClient.
Testing¶
5 MSTest files: SelfServiceUserContextTests, SelfServiceModuleServiceTests, ConfigurationJsonSyntaxFormatterTests, ConfigurationEntryFormModelTests, AssignedConfigurationFilterTests. See repo status for packaging gaps.