@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.Routing @using ZB.MOM.WW.OtOpcUa.Admin.Components.Layout @* AuthorizeRouteView (not a plain RouteView) is what makes a page-level [Authorize] attribute actually enforced — with RouteView the attribute is inert (Admin-001). Unauthenticated users hit the NotAuthorized slot and are bounced to /login; the route is preserved as returnUrl. *@ @if (context.User.Identity?.IsAuthenticated != true) { } else {

You do not have permission to view this page.

}

Authorizing…

Not found.