Skip to content

Releases

v1.319.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 21:16
4982a5f

Fixed

  • External sign-in failures no longer answer 500 (MMCA.Common.API): a provider round trip that fails before the OAuth completion (the user cancels at the provider, the correlation cookie expires during a long wait, a forged or stale state) on the Google, GitHub, Apple or OIDC callback now redirects to {OAuth:UIBaseUrl}/login?error=oauth_failed, or to the allow-listed native callback with ?error=oauth_failed when the challenge carried one, instead of an unhandled-exception problem response.
  • Role change on an unknown account with an unknown role (MMCA.Common.API, UsersAdminControllerBase): with a permission registry registered, PUT {userId}/roles for an account that does not exist now returns the service's answer, which validates the requested role first (the app's invalid-role 400 for an unknown role, 404 for a valid one), instead of always 404 from the privilege-ceiling lookup.

Changed

  • Dependencies: AWSSDK.S3 4.1.2.1, AngleSharp 1.11.0.

v1.318.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 21:15
c05fed5

Breaking (MMCA.Common.Testing.Architecture): the package no longer depends on NetArchTest.eNhancedEdition (or Mono.Cecil). Its rules run on an own engine over System.Reflection.Metadata with the same verdicts, and the NetArchTest type leaves the public API: ArchitectureAssert.NoViolations(NetArchTest.Rules.TestResult, string) is replaced by ArchitectureAssert.NoViolations(ArchitectureRuleResult, string). A consumer that only subclasses the *TestsBase classes (ADC, Store, Helpdesk) deletes global using NetArchTest.Rules; and its NetArchTest PackageReference, and changes nothing else. A consumer that wrote its own NetArchTest rules either keeps its own NetArchTest reference or moves them to the new entry point: Types.InAssembly(a) becomes ArchitectureTypes.InAssembly(a), .GetResult() is dropped (the condition returns the ArchitectureRuleResult directly), and FailingTypes becomes FailingTypeNames (nested types spelled Outer+Inner). The engine covers That, HaveName, HaveNameEndingWith, HaveAttribute, DoNotHaveDependencyOnAny, Should / ShouldNot with HaveDependencyOnAny / HaveDependencyOnAll, and GetTypeNames.

Breaking (MMCA.Common.Azure): native push talks to Azure Notification Hubs through an own REST client instead of the Microsoft.Azure.NotificationHubs SDK (no release since February 2024). The HTTP traffic is the SDK's, request for request, including its retry policy. AzureNotificationHubDeviceRegistrar and AzureNotificationHubNativePushSender become internal and INotificationHubClient is no longer registered: a host that resolved or constructed either type directly calls AddAzureNotificationHubsPush(configuration) and resolves IPushDeviceRegistrar / INativePushSender instead. The NativePush configuration (Enabled, ConnectionString, HubName) is unchanged. A malformed connection string still fails on first use, now as a FormatException.

Breaking (MMCA.Common.Aws, configuration): AddAwsDataProtection() persists the DataProtection key ring to one S3 object instead of Systems Manager Parameter Store, and the Amazon.AspNetCore.DataProtection.SSM dependency is gone. The gate key DataProtection:SsmParameterPrefix is replaced by DataProtection:S3ObjectUri (s3://bucket/path/keys.xml); DataProtection:KmsKeyId now selects SSE-KMS for that object (without it the bucket's default encryption applies), and DataProtection:ApplicationName is unchanged. Writes are conditional (If-None-Match / If-Match), so concurrent replicas never lose a key. The identity needs s3:GetObject and s3:PutObject on the object and s3:ListBucket on the bucket (without it a missing object reads as 403 and the first start fails), plus kms:GenerateDataKey and kms:Decrypt when a key is set. With no IAmazonS3 registered the default client uses the SDK default region and credential chain. Keys already in Parameter Store are not read: a deployment that used the old key moves to the new one by letting the ring regenerate (users sign in again once) or by copying the XML elements into the object before the switch. A host that still sets DataProtection:SsmParameterPrefix now fails startup, naming the new key.

Map and fix: UPGRADING.md, [Unreleased].

Changed

  • Third-party dependencies replaced by framework code (no behaviour change unless stated): Otp.NET (MMCA.Common.Infrastructure; an own RFC 6238 TOTP, identical codes and window; a stored secret that decodes to no key now verifies false instead of throwing), Microsoft.AspNetCore.WebUtilities (MMCA.Common.UI; an internal query-string codec), Microsoft.Extensions.Options.DataAnnotations (MMCA.Common.UI; [OptionsValidator] source-generated validators with the same pass and fail cases; the failure message now reads ApiEndpoint: The ApiEndpoint field is required.), and OpenTelemetry.Instrumentation.Runtime (MMCA.Common.Aspire; the built-in System.Runtime meter, same dotnet.* metric names).
  • MiniProfiler is wired (MMCA.Common.ServiceHost): with ApplicationSettings:UseMiniProfiler true, AddMmcaServiceHost registers the profiler, the profiling decorators (outermost, after the sealed pipeline) and the middleware after tenant resolution. The default stays off. The /profiler results now answer only in Development (401 elsewhere); a host that wants them in another environment sets MiniProfilerOptions.ResultsAuthorize and ResultsListAuthorize.
  • Security pins dropped: System.Security.Cryptography.Pkcs and Microsoft.OpenApi are no longer pinned or referenced directly. Microsoft.Data.SqlClient 7.1.2, Aspire.Hosting.SqlServer 17.0.0 and Microsoft.AspNetCore.OpenApi now require patched versions themselves, and the restore audit stays clean on both framework lines. The two net11.0 NuGetAuditSuppress entries for Pkcs are gone with the pin.
  • Build: MinVer and Microsoft.EntityFrameworkCore.Tools are gone. Release packages still carry the tag as their version; every other build is 0.0.0-dev, so no build needs git history.

v1.317.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 13:24
a62d5f1

Breaking (MMCA.Common.AI, startup behavior): Ai:RequireGuardrail (default true) is now satisfied only by a prompt-injection defense: an IChatGuardrail or IChatRequestRedactor registration whose implementation type implements the new marker interface IPromptInjectionGuardrail (MMCA.Common.AI.Guardrails). ContentPolicyGuardrail implements it; PiiRedactionGuardrail does not, because it strips contact details and lets injected instructions through. An enabled host whose only guardrail is AddPiiRedactionGuardrail() (or any unmarked guardrail or redactor) now throws InvalidOperationException from AddMmcaChatClient. Fix, one of: call services.AddContentPolicyGuardrail(configuration) before AddMmcaChatClient (keep AddPiiRedactionGuardrail() beside it if the host wants both); or implement IPromptInjectionGuardrail on the host's own injection defense and register it by implementation type, instance, or a factory typed as the implementation (a keyed registration, or a factory typed only as the interface, is not recognized); or set Ai:RequireGuardrail to false deliberately.

Breaking (MMCA.Common.AI.Testing): GoldenReplayCase gains a required fourth positional parameter, PromptContractHash: the PromptContract.Hash the case's recording was made against. GoldenReplayTestsBase gains the abstract CurrentContract (the PromptContract the code under test sends) and the fact EveryGoldenCase_WasRecordedAgainstTheCurrentContract, which fails, naming every case, when a case's recorded hash is not CurrentContract.Hash, and asks for a re-recording. Fix: in each subclass add protected override PromptContract CurrentContract => <the contract the service sends>;, and pass the hash as the fourth argument of every case, as a string literal (new("id", "what it pins", "Evaluation/Golden/case.json", "5c7c...")). The value is the one PromptContractPinTestsBase's pin file already records for <Name>@<Version>. Do not pass CurrentContract.Hash itself: a computed hash always matches and the gate passes vacuously. If the gate fails after upgrading, the recordings predate the current prompt: re-record them, then update the literal.

Map and fix: UPGRADING.md, [Unreleased].

Added

  • IPromptInjectionGuardrail (MMCA.Common.AI, MMCA.Common.AI.Guardrails): the marker Ai:RequireGuardrail checks for (see Breaking). ContentPolicyGuardrail implements it.
  • Golden recordings pinned to the prompt contract (MMCA.Common.AI.Testing): GoldenReplayCase.PromptContractHash, GoldenReplayTestsBase.CurrentContract and the fact EveryGoldenCase_WasRecordedAgainstTheCurrentContract (see Breaking). The empty-corpus refusal now runs in both facts.
  • Navigation fitness bases (MMCA.Common.Testing.UI, MMCA.Common.Testing.UI.Navigation), lifted from MMCA.ADC so every app runs one implementation. NavigationContractTestsBase is the Route Contract drift gate: the ## Route Contract table (| Route | Page | Access |) of the document named by DocEnvironmentVariable, else ../Website/docs-src/guides/<DocFileName>, must match the @page routes under SourceRoot and the access guard each declares; a missing document fails. The subclass supplies RepoRoot, DocFileName, DocEnvironmentVariable, MinimumRoutes and RoleNamesType; PageRoles (default: every constant on RoleNamesType) narrows the role words, and PermissionConstantsType (default null, off) enables the [HasPagePermission(X.Y)] form as Permission: <value>. DiscoverPageRoutes() returns the pages as NavigationPage records. NavItemGuardContractTestsBase fails any IUIModule.NavItems entry looser than the guard of the page it opens, over the pages of the subclass's NavigationContract plus the framework's routable components with their AddUIShared policies; a module loads by reflection when its assembly sits next to the tests, else from source, resolving RoleNamesType constants. Adoption is a subclass each, in a test project that references MMCA.Common.Testing.UI.

Changed

  • Dependencies: Anthropic 13.13.0 (MMCA.Common.AI.Anthropic) and RabbitMQ.Client 7.3.0 (MMCA.Common.Infrastructure). A consumer that pins either package moves the pin and regenerates its lock files.
  • ContentPolicySettings.BlockedResponsePatterns documents why it ships empty (MMCA.Common.AI): response patterns are domain-specific, so the framework ships the mechanism and each host supplies its patterns or its own response IChatGuardrail. No behavior change.

v1.316.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 03:03
958e2da

Breaking (MMCA.Common.Infrastructure, MMCA.Common.Azure, MMCA.Common.Aws, broker messaging): MassTransit is gone (ADR-118, Amendment 2026-11-23). The four broker transports (RabbitMQ and PostgreSQL built in, Azure Service Bus in MMCA.Common.Azure, Amazon SQS/SNS in MMCA.Common.Aws) are framework code over the vendor SDKs behind the unchanged IMessageBus and IEventBus, and one framework receive pipeline owns origin restore, the inbox, in-process retry, second-level redelivery and the dead-letter decision for all of them. AddBrokerMessaging(configuration, configureConsumers) takes an Action<IBrokerConsumerBuilder> (MMCA.Common.Infrastructure.Messaging.Broker) instead of an Action<IBusRegistrationConfigurator>: a consumer host swaps the lambda's parameter type where it names one and drops using MassTransit;. RegisterIntegrationEventConsumer<TEvent>(), RegisterUpcastedIntegrationEventConsumer<TEvent>() and RegisterOutputCacheEvictionConsumer() lose their registerFaultConsumer and configureEndpoint parameters: a host has exactly one queue, named by MessageBus:QueueName (else derived from the host's application name), with no per-consumer endpoint. FaultIntegrationEventConsumer<TEvent> is removed: a message that exhausts its retries and redeliveries is dead-lettered by the pipeline, which logs one Error and adds broker.fault.count (tags event_type, queue). MessageBusSettings loses EndpointPrefix, PreserveDefaultEndpointNames and EnableDelayedRedelivery and gains QueueName (at most 50 characters) and ProvisionTopology (default true; false means infrastructure as code creates every entity). IBrokerTransport replaces Configure(IBusRegistrationConfigurator, BrokerTransportContext) with Register(IServiceCollection, BrokerTransportContext) and adds MaxRedeliveryDelay; BrokerTransportContext takes and exposes the BrokerTopology. BrokerTransportPolicies drops ApplyReceivePolicies, ApplyMessageRetry, ApplyBackpressure and BuildRedeliveryIntervals(settings, defaultIntervalsSeconds) for RetryDelay, ResolvePrefetchCount, ResolveConcurrentMessageLimit and BuildRedeliveryIntervals(settings, maxRedeliveryDelay). BrokerMessageBus takes an IBrokerPublisher and the BrokerTopology instead of an IPublishEndpoint, and IntegrationEventConsumer<TEvent> and UpcastingIntegrationEventConsumer<TEvent> expose ConsumeAsync(integrationEvent, headers, cancellationToken) instead of Consume(ConsumeContext<TEvent>).

Breaking (broker entity names and topology, every transport): entity names now come from BrokerNaming, not from MassTransit. The event name is the [EventName] declared name, else the CLR full name, in lower kebab case (runs outside [a-z0-9] and a lower-to-upper boundary become one -). A topic is {kebab(ns)}-{event name}, where ns is Application:Namespace, which a broker host must configure (see the application namespace entry below). The host queue is MessageBus:QueueName, else the kebab-case application name with a trailing -service removed (MMCA.ADC.Engagement.Service gives mmca-adc-engagement). A name longer than a broker's limit is cut to name[..(max - 9)], trailing - trimmed, plus - and the first 8 hex digits of its SHA-256 (BrokerNaming.Fit). Existing MassTransit queues, exchanges, topics, subscriptions, _error queues and transport tables are not reused and nothing reads them after the upgrade: a deployment either drains them before the cutover, or, after the new revision is live, publishes the overlap again with IOutboxAdministration.RepublishProcessedAsync(fromUtc, toUtc) (the inbox absorbs the duplicates), inspects the old error queues and then deletes the old entities. Per transport:

  • Azure Service Bus: one topic per event (Fit(topic, 260)); per consumed topic one subscription named after the queue (Fit(queue, 50)) with the default match-all rule, forwarding (ForwardTo) to the host queue (Fit(queue, 260)); redelivery is a scheduled message on the host queue; a dead letter goes to the queue's native dead-letter sub-queue with its reason and detail. A queue the transport creates has duplicate detection OFF, because a scheduled redelivery reuses the message id, so a pre-provisioned queue must not enable it either. With ProvisionTopology true the identity needs Manage rights on the namespace (Azure Service Bus Data Owner).
  • RabbitMQ: one durable fanout exchange per event, the durable host queue bound to each consumed exchange, an error queue {queue}-error (was MassTransit's _error), and one delay queue per redelivery interval, {queue}-delay-{n}s (x-message-ttl, dead-lettered back to the host queue), declared on first use. The delayed-message exchange plugin is no longer needed, which is why EnableDelayedRedelivery is gone.
  • Amazon SQS/SNS: one SNS topic per event (Fit(topic, 256)), the host SQS queue (Fit(queue, 80)) subscribed with raw message delivery, and an error queue Fit(queue + "-error", 80). Every header travels packed in ONE message attribute, mmca-headers, since SNS and SQS cap a message at 10 attributes. Redelivery is a SendMessage with DelaySeconds, so redelivery intervals are clamped to 15 minutes: the default becomes [60, 600, 900] (MassTransit era: [60, 300, 900]), and a configured interval over 900 seconds is shortened instead of failing AddBrokerMessaging. The queue access policy is rewritten on every start to allow exactly the consumed topics, replacing any statement added by hand.
  • PostgreSQL: the tables subscriptions, messages and dead_letters in the schema MessageBus:PostgreSql:Schema, owned by the role MessageBus:PostgreSql:Role. Both default to transport, the same defaults the MassTransit SQL transport used, but the tables are different and nothing from the old schema is read. With MessageBus:PostgreSql:MigrateOnStartup (default true) the schema is created at startup, which needs CREATEROLE (or an existing role the connecting user is a member of) and CREATE on the database, as before.

Breaking (MMCA.Common.Infrastructure, broker messaging, application namespace): AddBrokerMessaging throws an InvalidOperationException at registration when MessageBus:Provider selects a broker (anything but InProcess) and Application:Namespace is not configured. Every topic is prefixed with the application namespace, and its fallback, the host's own application name, is different in every service, so the services of one application would publish and subscribe on different topics and lose every cross-service event without an error. Set Application:Namespace to the same value on every service of the application ("Application": { "Namespace": "contoso-shop" } in appsettings.json, or Application__Namespace=contoso-shop). A service that relied on the per-service fallback to keep its cache and lock keys apart from its siblings sets Cache:KeyPrefix per service, which the cache prefers over the namespace. An in-process host is unaffected.

Breaking (MMCA.Common.Testing.Azure): ServiceBusEmulatorFixtureBase drops BusControl, HostAddress and ConfigureReceiveEndpoint(IServiceBusReceiveEndpointConfigurator). It adds ConnectionString, AdminEndpoint, Services (the transport host's provider; throws when ReceiveQueueName is null), PublishAsync(IIntegrationEvent, CancellationToken), the static ComposeHostConfiguration(connectionString, adminEndpoint, queueName), the protected virtual ConfigureConsumers(IBrokerConsumerBuilder, IServiceCollection) and ConfigureHost(IDictionary<string, string?>), and the protected RecordConsumed<TEvent>(IBrokerConsumerBuilder, IServiceCollection). The constants, Client, AdminClient, Consumed, InitializeAsync, DisposeAsync, ComposeAdminConnectionString and the five protected virtual properties keep their shape and defaults. With ReceiveQueueName set the fixture runs a generic host on the native transport (MessageBus:QueueName, Application:Namespace and the application name all equal ReceiveQueueName, inbox off) and waits until every consumed topic's subscription exists. The package now references MMCA.Common.Azure (and through it MMCA.Common.Infrastructure) and the ASP.NET Core shared framework.

Breaking (MMCA.Common.Infrastructure, outbox and internal-command schema): OutboxMessage and InternalCommandMessage gain a nullable TraceFlags (byte?), the W3C trace flags of the request that wrote the row, so both processors keep an unsampled request unsampled. Consumers add one migration per relational database: a column TraceFlags on OutboxMessages and on InternalCommands, nullable with no default, typed tinyint on SQL Server, smallint on PostgreSQL and INTEGER on SQLite. Existing rows read back null, treated as not sampled; no index changes.

Breaking (MMCA.Common.Application, MMCA.Common.Infrastructure, outbox administration): IOutboxAdministration gains RepublishProcessedAsync(DateTime fromUtc, DateTime toUtc, CancellationToken), which returns the integration-event rows processed inside [fromUtc, toUtc) (UTC bounds, at most 7 days apart) to the pending pool on every source the host owns, so they publish again; domain-event rows are never reset. A third-party implementer of the interface adds the member. The call refuses with Outbox.RepublishRequiresInbox (a Conflict) and touches nothing when the consumer inbox is off (MessageBusSettings.IsInboxEnabled false, which is the in-process default), because without the inbox a republish runs the handlers again. OutboxAdministration takes IOptions<MessageBusSettings> as its sixth constructor argument; DI supplies it.

Breaking (MMCA.Common.Testing.Architecture, MMCA.Common.Shared build rules): DependencyVersionTestsBase.MassTransit_MustNotExceed_MajorVersion8 and its MassTransitPackageIds override point are replaced by `MassTransit_M...

Read more

v1.315.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:19
8563cd6

Breaking (net11.0 consumers, EF Core and Npgsql): on net11.0 the packages now depend on Entity Framework Core 11.0.0 and on Npgsql and Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0; net10.0 stays on EF Core 10.0.15 and Npgsql 10.0.4. A consumer that builds for net11.0 and pins the EF Core packages itself must set its own EF Core version to 11.0.0 for net11.0 in the same upgrade, or restore fails with NU1605 (package downgrade). The fix is in UPGRADING.md.

Added

  • McpHiddenText (MMCA.Common.Mcp): the hidden-text check the endpoint runs over every description at startup (R023), now public so a tool can apply it to the text it returns. Find reports each Unicode format character (category Cf), tag character (U+E0000 to U+E007F) and HTML comment opener; Strip removes every format and tag character from third-party text (a profile, an abstract) and keeps the visible text verbatim. The startup inspection now calls Find, so the two cannot drift.

Changed

  • Entity Framework Core 11 on the .NET 11 line (MMCA.Common.Infrastructure, MMCA.Common.Aspire): MmcaEfCoreVersion is 11.0.0 for net11.0 (EF Core 11 ships net11.0 assets only), now that Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 is stable. Npgsql and its EF Core provider read a new MmcaNpgsqlVersion property (10.0.4 on net10.0, 11.0.0 on net11.0), so the readiness-check driver and the provider stay on one build. Microsoft.Data.Sqlite follows the EF Core line as before. ApplicationDbContext logs RelationalEventId.MigrationsNotFound instead of throwing, so a source whose migrations assembly holds no migrations still migrates on net11.0 as it does on net10.0 (EF Core 11 raises that event as an error by default). See Breaking.
  • Dependencies: the dotnet/extensions train (Microsoft.Extensions.AI, AI.OpenAI, Caching.Hybrid, Http.Resilience, ServiceDiscovery, TimeProvider.Testing) 10.11.1 on net10.0 and 11.0.1 on net11.0; Microsoft.OpenApi 2.13.1 on net10.0; Anthropic 13.12.0; AWSSDK.Core 4.1.1.2, AWSSDK.RDS 4.1.1.1, AWSSDK.DynamoDBv2 4.1.0.3; Azure.Storage.Blobs 12.30.2; QRCoder 1.9.0; build-time analyzers Meziantou.Analyzer 3.0.342 and SonarAnalyzer.CSharp 10.37.0.15768. Microsoft.Testing.Platform stays at 2.5.2 (deprecated as legacy, no advisory) until xunit.v3 resolves 2.5.3.

v1.314.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:35
8b2b510

Breaking (MMCA.Common.Application, MMCA.Common.Infrastructure, two-factor): calling AddTwoFactorAuthentication now arms the sign-in second-factor challenge by itself. The container builds AuthenticationValidators through a new constructor that carries the registered ITwoFactorAuthenticator, and AuthenticationServiceBase uses it whenever its own twoFactor constructor argument is null; an explicit argument still wins. Before, the call changed nothing about sign-in until the app's AuthenticationService passed the authenticator to its base constructor. A host that calls AddTwoFactorAuthentication registers its ITwoFactorStore (the authenticator cannot be built without one, so sign-in fails to resolve otherwise), and a host that wants the enrollment endpoints without a challenge at sign-in overrides ChallengeSecondFactorAsync. The app's AuthenticationService constructor does not change. ADC, Store and Helpdesk do not call AddTwoFactorAuthentication today, so nothing changes for them until they adopt it.

Breaking (MMCA.Common.Application, MMCA.Common.API, registration): with Authentication:EmailConfirmation:RequireConfirmedEmail set and a User that implements IEmailConfirmableUser, registration creates the account and opens no session: RegisterAsync returns a success carrying RegistrationOutcome.ConfirmationPending (no token pair, no refresh session), and the base register action answers 202 with RegistrationPendingResponse (the address as typed) instead of 201 with tokens. The rule is the sign-in gate itself (CheckEmailConfirmed), so registration opens no session exactly when sign-in would refuse the new account. A consumer that overrides the register action returns the new AuthControllerBase.RegistrationResult(result, request.Email) in place of writing the 201 itself, and adds the 202 to its own response annotations (the base action adds none, so a consumer that does not adopt keeps its OpenAPI document unchanged). With the setting off, or a user type without confirmation, registration is unchanged. Both ADC and Store run with the setting off.

Added

  • A role that requires a second factor (MMCA.Common.API, MMCA.Common.Shared): Authorization:MultiFactor:RequiredForRoles lists roles whose accounts need a second factor. When a bearer token is validated for an account in a listed role and the token carries no mfa claim, the framework withholds that role and the permission claims that come with it for the request, and records what it withheld in marker claims (AuthClaimTypes.MultiFactorWithheldRole, MultiFactorWithheldPermission; GetMultiFactorWithheldRoles() and HasMultiFactorWithheldRole() read them). Every check that asks for a role or a permission therefore sees an account without the listed role: [HasPermission], OwnerOrAdminFilter's bypass role, the current-user service, the output-cache bypass and app code alike. A [HasPermission] check that the withheld role would have passed answers a 403 problem document carrying Authorization.MultiFactorRequired; plain [Authorize] endpoints stay reachable, so the account can still use its own data, its profile and the two-factor endpoints. Machine clients and service tokens are exempt, a gRPC request keeps the default refusal, the token itself is unchanged, and each service applies the rule with its own configuration. Work the request schedules in the background carries the same withheld principal; work scheduled by a session that carried the factor is unchanged. With the list empty, which is the default, nothing changes. A host enrolls its existing privileged accounts before it sets the list.
  • A listed role is granted only to an enrolled account (MMCA.Common.API): with the list set and an ITwoFactorStore registered, UsersAdminControllerBase refuses to assign a listed role to an account that has not turned on two-factor authentication, with 409 UserAdministration.SecondFactorNotEnrolled. With the list empty, or no store registered, role assignment is unchanged.
  • TwoFactorControllerBase<TBegin, TConfirm, TDisable, TRegenerate> (MMCA.Common.API): the HTTP surface for the existing two-factor handler bases: status, begin enrollment, confirm, regenerate recovery codes and disable, every action plain [Authorize] and refused for machine clients. Beginning and confirming an enrollment require a recent sign-in (Authentication.TwoFactorRecentSignInRequired), a response that carries the shared key or recovery codes is never cached, and confirming an enrollment or turning the factor off ends the account's other sessions.
  • AddTwoFactorUI() (MMCA.Common.UI): an opt-in account page at /profile/two-factor (enroll with a QR code or the text key, confirm with a code, see the recovery codes once, regenerate them, turn the factor off), its navigation item, and a redirect to that page when an API call is refused because a second factor is required. After enrolling, the page signs the user out so the next sign-in carries the factor. A host that does not call it has no page, no navigation item and no redirect. An account that signs in only through an external provider or a sign-in link sets a password or registers a passkey before enrolling, because those two sign-in paths refuse an enrolled account.
  • A code step on the shared sign-in page (MMCA.Common.UI): when the server answers that a second factor is required, the page asks for the authenticator or recovery code and signs in with it. It appears only for an account that enrolled.
  • Registration that ends in "check your mail" (MMCA.Common.UI): the shared Register page shows a confirmation-pending state with a resend action when registration opened no session (see Breaking), and AuthUIService reports that result without touching token storage.
  • EmailConfirmationResendPrompt (MMCA.Common.UI): a reusable resend action for the confirmation mail, shown on the shared sign-in page when sign-in is refused because the address is not confirmed, and on the Register page's pending state. The resend endpoint keeps its existing limits.
  • SendSignInLinkHandlerBase.OnNoAccountAsync(Email, CancellationToken) (MMCA.Common.Application): an extension point for a sign-in link request whose address has no account, so an app whose invitations create the account on first use can send a fresh invitation. The handler's answer is the same success whatever the override does.
  • Shared types (MMCA.Common.Shared): AuthErrorCodes.MultiFactorRequired, TwoFactorRequired, TwoFactorInvalid and EmailNotConfirmed; TwoFactorStatusResponse; RegistrationPendingResponse and RegistrationOutcome.

Changed

  • AddAuthorizationPolicies wraps the registered authorization result handler (MMCA.Common.API) so the second-factor refusal carries its coded body; every other result is passed to the original handler unchanged. A host that registers its own IAuthorizationMiddlewareResultHandler after the call replaces the wrapper and gets a plain 403 for that refusal.
  • The same-origin proxy turns a token-issuing response into session cookies only on 200 or 201 (MMCA.Common.UI.Web): any other success on such a path (a registration that awaits confirmation answers 202) is copied through unchanged, writes no cookie, keeps a view-as overlay and is marked no-store.
  • The Authorization.MultiFactorRequired message (MMCA.Common.API) now tells the user to set up two-factor authentication or sign in again with a code.
  • E2ETestBase.RegisterNewUserAsync handles the confirmation-pending page (MMCA.Common.Testing.E2E): when registration ends in "check your mail", the helper reads the confirmation mail through MailDevInbox, follows its link, signs in and returns a signed-in page as before, so a consumer's browser suite keeps working with RequireConfirmedEmail on. Without a mail catcher it fails with a message that says so. The signed-in path is unchanged.
  • ci.yml installs the Aspire CLI from the versioned release archive and checks it against a pinned SHA-512 before extracting it.

v1.313.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 04:22
e991c47

Breaking (MMCA.Common.Application, sign-in links): redeeming a sign-in link or an invitation for an account that is still unconfirmed and already holds a password now revokes the account's refresh sessions and then removes that password in the save that confirms it; the owner sets a password through forgot password. The link proves the mailbox, not the password that was set before the address was confirmed. A User aggregate reachable by sign-in links implements the new IPasswordClearableUser (MMCA.Common.Domain.Auth.Credentials, one member, Result ClearPassword(), which empties the hash and salt); for an aggregate that does not, such a redemption is refused with the generic invalid-link answer and nothing is saved. The sessions are revoked through the existing IAuthenticationService.RevokeAllSessionsAsync before the account is changed, so a subclass of RedeemSignInLinkHandlerBase<TUser, TCommand> passes nothing new; when that revocation fails the redemption fails and the account is untouched. A confirmed account, an account with no password, and the confirm-email link are unchanged.

Breaking (MMCA.Common.Application, token issuance): on a host that configured two-factor, AuthenticationServiceBase.IssueTokensAsync (the issuance an app-level external login mints through) refuses an account with an enrolled second factor with Authentication.TwoFactorRequired. That path has no code parameter yet, so an enrolled account cannot complete an external sign-in on such a host. A host with no two-factor configured is unchanged.

Breaking (MMCA.Common.API, MMCA.Common.Application, user administration): UsersAdminControllerBase<TUserDto> enforces a privilege ceiling wherever the host registers an IPermissionRegistry: assigning a role, locking and unlocking are refused with 403 UserAdministration.PrivilegeCeiling when the requested role, or the target account's current role, grants a permission the caller does not hold (by claim, by role or by stored grant). The refusal names no permission. A request naming zero or several roles still gets its existing 400, and a role-only host is unchanged. IUserAdministrationService<TUserDto> gains GetRoleAsync(userId), which UserAdministrationServiceBase implements; a service that implements the interface directly adds it.

Breaking (MMCA.Common.Application, two-factor): BeginTwoFactorEnrollmentHandlerBase<TCommand> takes an ITwoFactorSecretProtector as its third constructor argument, between the store and the logger; pass the one AddTwoFactorAuthentication registers. The framework now hands ITwoFactorStore.StartEnrollmentAsync the shared secret in its protected form (ASP.NET Core Data Protection) and expects the store to return it unchanged as ITwoFactorUserState.TwoFactorSecret, so a multi-replica host needs a shared key ring. No store in ADC, Store or Helpdesk holds a secret from an earlier release, so there is nothing to migrate.

Breaking (MMCA.Common.Aspire, gateway rate limiting): a request that proves the trusted-caller secret and forwards a visitor address in X-Forwarded-For (a server-rendered UI host calling the gateway for a visitor) is no longer exempt from the per-IP window and the named route policies: it is counted in that visitor's own window, the one a direct request from the same address uses. Behind a shared NAT that is more traffic per partition than before, so raise GatewayRateLimiting:PermitLimit or set GatewayRateLimiting:TrustedCallerMode to Exempt to restore the previous behavior. A trusted-caller request with no visitor address, and the concurrency ceiling, are unchanged.

Breaking (MMCA.Common.UI.Web, UI rate limiter): a path is no longer exempt from the UI host's limiters because its last segment has a file extension. Only the existing exempt prefixes and requests whose matched endpoint is a static asset mapped by MapStaticAssets are exempt; any other path (a missing file, or a file served only by UseStaticFiles outside those prefixes) is counted by both the per-IP window and the concurrency ceiling.

Breaking (MMCA.Common.UI, external sign-in): OAuthFlowStateStore.TryCompleteAsync refuses the completion when no device-local storage is registered, instead of accepting it. A host that runs the OAuth flow registers AddBrowserDeviceCapabilities (web) or the MAUI store.

Breaking (MMCA.Common.Mcp): MapCommonMcp refuses to start when a registered tool carries neither [McpToolPermission] nor [McpToolPublic], naming the tool. McpToolAccessDeclarationTestsBase already enforced the declaration for hosts that adopted it.

Breaking (MMCA.Common.AI): Ai:Endpoint must be https outside Development; an http endpoint fails options validation at startup.

Breaking (MMCA.Common.Grpc): the identity a service token authenticates carries AuthenticationType ServiceToken (ServiceTokenDefaults.AuthenticationScheme) instead of the JwtBearer default. Code that read the authentication type of a service-token principal sees the new value.

Breaking (MMCA.Common.Aspire.Hosting): WithMmcaServiceInfrastructure no longer marks a backend service's HTTP endpoints external; the gateway and UI helpers still do. An AppHost that relied on reaching a service from outside chains .WithExternalHttpEndpoints() after the call.

Breaking (samples/deployment): main.bicep provisions SQL with Microsoft Entra-only authentication and no longer creates the allow-all-Azure (0.0.0.0) firewall rule. The sqlAdminLogin and sqlAdminPassword parameters are replaced by sqlEntraAdminLogin, sqlEntraAdminObjectId and sqlEntraAdminPrincipalType; the app connects as its managed identity. A consumer who copied the template runs the one-time contained-user step in DEPLOYMENT.md and adds a network rule for its own network, since nothing can reach the server until it does.

Added

  • ServiceTokenDefaults.ServiceCallerPolicy and ClaimsPrincipal.IsServiceCaller() (MMCA.Common.Grpc): an authorization policy (ServiceCaller) that admits only a service token carrying the svc claim, registered by AddServiceTokenAuthentication beside InternalCallerPolicy, which still admits a user or a service. An internal edge that only another service calls takes the new policy; an edge that takes both uses IsServiceCaller() to let a service through and compare a user caller with the subject it asked for.
  • Privilege ceiling on user administration (MMCA.Common.API, MMCA.Common.Application): see Breaking. IUserAdministrationService<TUserDto>.GetRoleAsync returns an account's current role, and the controller logs one Information line naming the action, the target and the acting administrator after a successful role change, lock or unlock.
  • PublicEndpointOutputCachePolicy(TimeSpan, string[] bypassRoles, string[] bypassPermissions, string[] tags) (MMCA.Common.API): a caller holding any of the bypass permissions, by claim, by role or by stored grant, is neither served from nor stored into the shared cache. The existing constructors keep their behavior.
  • Sign-in outcome signal (MMCA.Common.Application, MMCA.Common.Infrastructure, MMCA.Common.Aspire): a counter mmca.auth.signin on the meter MMCA.Common.Auth, one increment per password sign-in with the single tag outcome (success, invalid_credentials, locked_out, second_factor_required, second_factor_failed, email_not_confirmed, rejected), exported by the service defaults. A failed outcome logs one Warning through the service's Logger with the outcome and a truncated hash of the address, never the address; LoginProtectionService logs each recorded failed attempt at Information.
  • IPasswordHasher.BurnVerificationCost(string) (MMCA.Common.Application): a default interface member the sign-in path calls for an address with no password credential. The shipped PasswordHasher burns at the highest work factor a stored record can carry, so that answer costs the same as verifying a legacy-format record. A custom hasher that still verifies records at an older, higher work factor overrides it.
  • IRedisConfigurationOptionsConfigurator and AddRedisConfigurationOptionsConfigurator (MMCA.Common.Infrastructure): one extension point that adjusts the StackExchange.Redis ConfigurationOptions of every Redis connection the framework opens (the distributed cache, the Redis client, the output cache, the SignalR backplane and the Redis health check). With none registered every connection is built from its connection string exactly as before.
  • AddAzureRedisEntraAuthentication(IConfiguration) (MMCA.Common.Azure): Microsoft Entra token sign-in for Azure Cache for Redis and Azure Managed Redis through Microsoft.Azure.StackExchangeRedis 3.3.1, so a cache can run with access keys off. Gated on AzureRedis:EntraAuthentication:Enabled, with an optional AzureRedis:EntraAuthentication:ManagedIdentityClientId; it refuses a connection string that carries a password or turns TLS off, and a host that sets the gate without the call fails at startup naming it.
  • Azure Service Bus sign-in with a managed identity (MMCA.Common.Azure): MessageBus:AzureServiceBus:FullyQualifiedNamespace (with an optional MessageBus:AzureServiceBus:ManagedIdentityClientId) makes the transport sign in with a token credential instead of a SAS connection string, so a namespace can run with local authentication off. The namespace wins when both it and MessageBus:ConnectionString are set.
  • EntityControllerBase.ExportIncludeChildren and ExportIncludeFKs (MMCA.Common.API): two protected virtual switches, both false by default, that make a controller's CSV export load child collections and foreign keys, so a DTO value computed from a loaded navigation (a child count, a parent's name) is exported instead of 0 or empty. A child collection still produces no CSV column.
  • **`ITwoFactorSec...
Read more

v1.312.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 23:55
ccfbeae

Added

  • CrossServiceCacheKeys (MMCA.Common.Application) and CacheKeyPrefixOptions.CrossServiceKeyPrefix (MMCA.Common.Infrastructure, Cache:CrossServiceKeyPrefix): a cache key that starts with CrossServiceCacheKeys.Prefix (xsvc:) is a record one service writes and another reads. The two-level cache qualifies it with a namespace every service of one deployment shares instead of the host's own: Cache:CrossServiceKeyPrefix when set (set the same value on every service), otherwise the token audience Jwt:Audience, otherwise the host's own namespace. Such a key carries no generation token, so a prefix invalidation in one service never hides it from the others. Every other key keeps the host's namespace (see Fixed).
  • ISessionAwareTokenStorage.RenewRejectedAccessTokenAsync(string) (MMCA.Common.UI): a default interface member (it changes nothing, so a storage written against 1.311.0 keeps compiling and behaving as before) that AuthDelegatingHandler calls when the API answers 401 to a bearer the storage holds. WasmTokenStorageService, SecureStoreTokenStorageService and ServerTokenStorageService (MMCA.Common.UI.Web) implement it (see Fixed).
  • ListPageShell<TItem>.SearchAriaLabel (MMCA.Common.UI): an optional accessible name for the search field; it defaults to the placeholder text (see Fixed).

Fixed

  • A locked or deleted user is refused by every service, not only Identity (MMCA.Common.Application, MMCA.Common.Infrastructure; BR-133): the soft-deleted-user marker key is now xsvc:user:deleted:{id}, a cross-service key. Each Store and ADC service sets its own Application:Namespace and Cache:KeyPrefix, so Identity wrote store-identity:hc:user:deleted:{id} while Sales read store-sales:hc:user:deleted:{id} and kept answering 200 to the locked user's old token. With every service of a deployment configured with the same Jwt:Audience (as Store and ADC are), the marker now lands where all of them read it, and an unlock clears it for all of them. A marker written before the upgrade is no longer addressed; it covered at most one access-token lifetime.

  • An ended view-as grant is refused by every service, not only the grant-store host (MMCA.Common.API; ADR-137): the "grant ended" marker key is now xsvc:viewas:ended:{grant}, a cross-service key. The end endpoint wrote it under the store host's own cache namespace, so a service with a different Application:Namespace or Cache:KeyPrefix (each Store service) never read it and kept serving the ended view-as token until it expired.

  • An API 401 ends a session whose refresh is refused (MMCA.Common.UI, MMCA.Common.UI.Web): a session ended only when a refresh was refused, and a 401 never caused one, so after a lock the web and MAUI apps stayed signed in behind "You are not signed in, or your session has expired" with no redirect. AuthDelegatingHandler now reports a 401 to a request that carried a bearer to the storage that holds it, which drops the token and makes ONE refresh through its single-flight: a refused refresh clears the stored tokens and raises SessionEnded, so a protected page lands on /login; an acquired token serves the next call. The 401 response itself is passed through unchanged and never replayed, a token produced by such a refresh is never refreshed again on its own 401 (no loop), and the token refresh POST (SkipBearer) and anonymous requests are left alone. AuthenticatedServiceBase records which storage attached a bearer, because in a browser host the handler's own scope holds a different storage instance than the component.

  • Confirm email and Reset password read a new link opened on the page (MMCA.Common.UI): both pages read the URL fragment on the first render only and filled only empty fields, so a new link opened in a tab already on /confirm-email or /reset-password (after "link expired, send me a new one") was ignored: the old token stayed in the form, nothing was redeemed and the new single-use token stayed in the address bar. A location change that carries a fragment is now taken (which scrubs it), its values replace the stale ones (a value it does not carry is cleared), and it is redeemed (confirm email) or prefilled (reset password) once, as in a fresh tab. The first render keeps its fill-empty-only rule. ResetPassword now implements IAsyncDisposable to drop its location handler (its new logic lives in a ResetPassword.razor.cs code-behind; ConfirmEmail.MergeLinkFragment is the one fragment reader both pages share).

  • A deep-linked list page never shows first-page rows under the restored pager (MMCA.Common.UI): a cold deep link such as /products?p=1&ps=5 ran the grid's first load with its page reset to 0 while the restore waited behind two JS interop round trips, so under Slow 4G the pager read "6-10 of 36" over page-1 rows and the URL dropped p for 0.6 to 2.3 s. While a page restored from the URL or saved state is not yet on the grid and the grid still reports page 0, DataGridListPageBase<TDto> now fetches and saves the restored page (the prerender-persisted shortcut included); once the first-render restore has run, every load takes the grid's own page.

  • A page past the end of a list shows the last page (MMCA.Common.UI): a hand-typed or stale ?p= beyond the last page (or rows deleted since the link was made) came back with no rows but a non-zero total, so the grid showed nothing, a pager like "1-2 of 2" and no empty-state text. DataGridListPageBase<TDto> now refetches the last page when a page past it comes back empty with TotalItems > 0, moves the pager there and saves that page to the URL. An empty list still answers its single empty first page.

  • The list search field has an accessible name (MMCA.Common.UI; WCAG 4.1.2): ListPageShell's search input carries an aria-label, the new SearchAriaLabel parameter when set and otherwise the placeholder text (SearchPlaceholder, or the shared List.Search.Placeholder), so every consumer list is named with no change.

  • The Language control takes keyboard focus in the browser (MMCA.Common.UI; WCAG 2.1.1): the app.css rule that gives CultureSwitcher's activator wrapper a box is now .mud-menu.culture-switcher > div.mud-menu-activator (specificity 0,3,1). The 1.311.0 selector .culture-switcher > .mud-menu-activator (0,2,0) lost to MudBlazor's own .mud-menu>div.mud-menu-activator{display:contents} (0,2,1), so the wrapper stayed display: contents, focus() was a no-op and forward Tab still skipped the control in the app bar and the phone top row. A Playwright check in the gallery tier (CultureSwitcherKeyboardE2ETests) now reads the computed display, real focus by Tab and Enter opening the menu on every engine.

  • Auth email fields accept an internationalized local part (MMCA.Common.UI): the email field on Login, Register, Forgot password, Reset password, Confirm email (resend) and the sign-in link page is a text input with inputmode="email" (the email keyboard), autocapitalize="none" and spellcheck="false", keeping its autocomplete, instead of type="email", whose browser check refused a non-ASCII local part before the form submitted (web Chrome and the MAUI WebView). The DataAnnotations and server-side validation are unchanged and already accept such an address.

v1.311.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 03:45
7ec04e2

Added

  • DataGridListPageBase<TDto>.MobileListRef (MMCA.Common.UI): a protected virtual property, default null, that a page rendering a MobileInfiniteScrollList<TDto> on a phone overrides to expose it, as GridRef exposes the grid. The base uses it to reload the card list after a same-route navigation (see Fixed).

Fixed

  • Mail reaches an address with a non-ASCII local part (MMCA.Common.Infrastructure): SmtpEmailSender sends with SmtpDeliveryFormat.International (SMTPUTF8), so confirmation, reset, sign-in link and invite mail to such an address no longer throws "only configured for E-mail addresses with ASCII local-parts". ASCII addresses are sent as before. The relay must offer SMTPUTF8 for a Unicode address.
  • Stored feature-flag overrides no longer flap between services that share one Redis (MMCA.Common.Infrastructure; ADR-031): the override snapshot key now carries the owning service (the host's IHostEnvironment.ApplicationName, or the entry assembly name without one) as well as FeatureFlags:DataSourceName, so two services that keep the default Default source no longer share one snapshot, where the last loader won and either service's invalidation dropped the other's. The invalidation prefix follows the key. Existing snapshot entries are simply no longer addressed and expire.
  • A transport-level gRPC failure is a retryable server fault, not a 400 (MMCA.Common.Grpc): RpcException.ToResult() and ToResult<T>() turn a fault that carries no structured trailers (Unavailable, DeadlineExceeded and any other transport status) into ErrorType.Unexpected (HTTP 500 at the edge, the top rank in ErrorTypeSeverity) instead of ErrorType.Failure (400), keeping the Grpc.{StatusCode} code and the source. A peer outage no longer reaches clients as a definitive "not available".
  • List-page column filters: one rule for the fetch and the URL (MMCA.Common.UI): a filter row with no operator yet (the second row a user adds on a filtered column) is ignored by both the fetch and the saved c: state, and of the complete rows on a column the newest wins in both. Before, the fetch took the incomplete row (no filter) while the URL kept the first.
  • A column filter restored from the URL reaches the first fetch however long OnBeforeFetchAsync takes (MMCA.Common.UI): the grid's state is a copy taken when its load starts, so when the first-render setup put the restored filter on the grid while the load awaited a slow lookup, the load sent no filter and dropped c: from the URL (WASM). The load now remembers that a restore was pending when it started.
  • A same-route navigation reloads the active layout (MMCA.Common.UI): back/forward, or a link to the list page the reader is on with other filters, now reloads the phone card list (through MobileListRef and ReloadActiveLayoutAsync, or OnMobileDataRequestedAsync for a page without one) instead of only the grid, so the phone no longer keeps the cards of the old filters.
  • List-page search is forgotten on sign-in (MMCA.Common.UI): a successful login, register, passkey or OAuth sign-in clears ListPageStateService (memory and sessionStorage) before it announces the new account, as every sign-out already did. A session revoked from another device while a WASM tab was closed ends without SessionEnded, and a different account can sign in over a tab that still looks signed in, so the sign-in itself drops the previous account's search. It does so on every sign-in, the same account's included; a token refresh keeps the state.
  • The Language control is reachable by keyboard (MMCA.Common.UI; WCAG 2.1.1): CultureSwitcher's focusable control is MudMenu's own activator wrapper (role="button", tabindex="0", Enter and Space open the menu), which MudBlazor renders display: contents and so takes no focus. The menu root now carries culture-switcher, and app.css gives that wrapper a box sized like the app-bar icon buttons, so forward Tab reaches it on desktop and phone and the existing .mud-menu-activator focus rings draw around it. The name stays the text inside it ("Language" / "Idioma"); CultureSwitcher.razor.css is removed.

v1.310.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 03:36
197e278

Added

  • Startup tripwire checks for the AWS RDS and Google Cloud SQL IAM gates (MMCA.Common.Aspire, MMCA.Common.Aws, MMCA.Common.Gcp; ADR-134): HostIntegrationNames.AwsRdsIamAuthentication and HostIntegrationNames.GoogleCloudSqlIamAuthentication, the receipts services.AddAwsRdsIamAuthentication(configuration) and services.AddCloudSqlIamAuthentication(configuration) now leave once past their gate, and two boolean-gate checks beside the Azure PostgreSQL Entra one. A host with Rds:IamAuthentication:Enabled or CloudSql:IamAuthentication:Enabled true and no matching adapter call now fails at startup naming the call, instead of logging in with whatever password its connection string carries; a value that is neither blank nor a boolean fails too, as the Entra gate already did. A host that makes the call, or leaves the gate false or blank, changes nothing.
  • /client-config forwards Common.UI's own settings sections (MMCA.Common.UI.Web): MapClientConfigEndpoint now writes the server head's Layout, Registration, SignIn and Legal configuration into the document (layout, registration, signIn, legal), beside api and modules, so a brand, footer, legal link or sign-in option set where production values are set (an environment variable, Key Vault, appsettings.Production.json on the UI container) renders the same after hydration as in the prerender, with no hand-synced copy in the WebAssembly bundle. Only the properties the matching settings class declares are written (a server-only or secret key under the same section name, and computed members such as LegalSettings.HasFooterLinks, never are), and only the keys the server sets; a section the server does not configure is left out, so the client's defaults hold. A head that still adds one of these sections through its ClientConfig callback keeps working unchanged: its own section replaces the forwarded one, and no reserved-name error is raised. The client half is unchanged: MmcaClientConfigBootstrap already loads the whole document into configuration.
  • MAUI WebView host rules in Common.UI's app.css (MMCA.Common.UI): .status-bar-safe-area, the status-bar spacer a MAUI head's index.html places before #app, sized max(env(safe-area-inset-top, 0px), var(--mmca-status-bar-fallback, 0px)) from the fallback theme-prepaint.js already sets, painted in --mmca-sidebar-bg-dark and stacked at calc(var(--mud-zindex-drawer, 1100) - 1) so the scrolling chrome slides under it while every MudBlazor overlay stays above; and .host-loading-spinner with its host-loading-spin keyframes on var(--mmca-primary). A head that keeps its own copy of these rules still works (its sheet loads later and wins); a head can now delete it. Both classes match only MAUI host markup, so the web heads are untouched.
  • PageExtensions.DismissSnackbarsAsync(this IPage page, string? text = null) (MMCA.Common.Testing.E2E): closes the MudBlazor snackbars on screen (only those whose text contains text, when given) and waits until none is left, instead of waiting each toast's whole lifecycle out. It matches both close shapes: the close icon .mud-snackbar-close-button a timed toast renders and, for a toast without one (a RequireInteraction notification), the button in .mud-snackbar-content-action; the close icon is preferred so an action with a side effect is never clicked to dismiss. Bounded: up to five close-then-wait rounds (a queued toast that takes a freed slot is closed on the next one), then a 15 s wait, then a TimeoutException naming what is still on screen. With nothing matching on screen it returns at once (it does not wait for a toast to appear). RoleAdminPage uses it in place of its private copy.

Changed

  • Api:ApiEndpoint and Api:WasmApiEndpoint must be URLs, not just present (MMCA.Common.UI.Web): MapClientConfigEndpoint now refuses an Api:WasmApiEndpoint that is not an absolute http(s) URL (before, only a blank one), and AddMmcaBlazorWebHost refuses an Api:ApiEndpoint that is neither an absolute http(s) URL nor an Aspire service-discovery name such as https+http://gateway (before, only a missing one). Both reuse the test the Blazor CSP already applied to the same keys, now one internal helper, and keep their messages with a sentence naming the required shape. Behavior change: a host still carrying a placeholder such as SET-VIA-ENVIRONMENT-VARIABLE (an environment variable lost from the deployment) now fails at startup (Api:ApiEndpoint) or answers /client-config with a server error (Api:WasmApiEndpoint) instead of booting its clients against a non-URL with the CSP silently narrowed to 'self'. ADC, Store and Helpdesk configure valid values in every development, test and deployed path. No API change.

Fixed

  • The Azure startup calls leave their tripwire receipt only when they registered something (MMCA.Common.Azure.Startup; ADR-134): AddAzureKeyVaultConfiguration(), AddAzureDataProtection() and AddAzureMonitorExporter() now add their HostIntegrationMarker after their "do nothing" gate, as the six AWS and GCP twins already did. Before, a call made while its gate key (KeyVault:Uri, DataProtection:BlobStorageUri, APPLICATIONINSIGHTS_CONNECTION_STRING) was still blank registered nothing yet satisfied the startup check, so a key that arrived through a source added after the call (calling AddAzureDataProtection() before AddAzureKeyVaultConfiguration() with the blob URI held in the vault, for one) left every replica on its own in-memory key ring with no startup error. Behavior change: such a host now fails at startup, naming the missing call; move the call below the source that supplies its key. AddAzureMonitorExporter() still refuses to run before AddServiceDefaults() whether or not the connection string is set. No API change.