Skip to content

Development

Build and run

dotnet run --project src/ConnectSoft.Blazor.Mfe.ECS.SelfServiceTemplate

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 - drives AssignedConfigurationFilter so users see only their assigned configs.
  • SelfServiceConfigurationEdit.AllowScopeEdit - enables editing alongside the CanEditConfigurations policy.
  • SelfServiceAuthentication - turn on WASM OIDC; SelfServiceEcsApiAccessTokenHandler then 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.

See also