Skip to content

Commit 18e2445

Browse files
aurelianwareclaude
andcommitted
fix(portal): add Authorization namespace to _Imports.razor
Without @using Microsoft.AspNetCore.Components.Authorization in _Imports.razor, the <CascadingAuthenticationState> tag in App.razor was silently compiled as an HTML element instead of a Blazor component. This left AuthorizeView with no cascading Task<AuthenticationState>, causing every circuit to crash with "Authorization requires a cascading parameter of type Task<AuthenticationState>". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 838bd24 commit 18e2445

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/portal/CloudHealthOffice.Portal/_Imports.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@using System.Net.Http
22
@using System.Net.Http.Json
3+
@using Microsoft.AspNetCore.Components.Authorization
34
@using Microsoft.AspNetCore.Components.Forms
45
@using Microsoft.AspNetCore.Components.Routing
56
@using Microsoft.AspNetCore.Components.Web

0 commit comments

Comments
 (0)