@* Router with AuthorizeRouteView so page-level [Authorize] attributes are enforced (with plain RouteView, the attribute is inert — Admin-001). Unauthenticated users hit the NotAuthorized slot and are bounced to /login; the route they came from is round-tripped as ?returnUrl=. *@ @using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout @if (context.User.Identity?.IsAuthenticated != true) { } else {

You do not have permission to view this page.

}

Authorizing…

@code { /// /// Hosts that want to expose pages defined in their own assembly pass them here. The fused /// Host doesn't currently host its own routable pages — everything lives in this RCL — but /// the parameter is here so a downstream consumer (or test rig) can extend without forking /// Routes.razor. /// [Parameter] public IEnumerable? AdditionalAssemblies { get; set; } }