<CascadingAuthenticationState> <Router AppAssembly="typeof(Program).Assembly" Context="routeData"> <Found> <AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)"> <NotAuthorized> <RedirectToLogin /> </NotAuthorized> <Authorizing> <div class="main">Please wait...</div> </Authorizing> </AuthorizeRouteView> </Found> <NotFound> <LayoutView Layout="typeof(MainLayout)"> <div class="main">Sorry, there's nothing at this address.</div> </LayoutView> </NotFound> </Router> </CascadingAuthenticationState>