Fix: Unable to find the required 'IAuthenticationService' service with [Authorize(Policy = ...)] in Blazor
A Blazor Web App page with [Authorize] becomes an endpoint the AuthorizationMiddleware checks, and a failed check calls ChallengeAsync, which needs AddAuthentication. Register a real scheme, or pass component endpoints through to AuthorizeRouteView.