diff --git a/aspnetcore/blazor/hybrid/security/index.md b/aspnetcore/blazor/hybrid/security/index.md index cb0a1ebd6814..e21c68b164c8 100644 --- a/aspnetcore/blazor/hybrid/security/index.md +++ b/aspnetcore/blazor/hybrid/security/index.md @@ -104,7 +104,7 @@ The following steps describe how to: * Resolve the `AuthenticatedUser` service to set the authenticated user's claims principal. See your identity provider's documentation for details. * Return the built host. -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add namespaces for and : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add namespaces for and : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -299,7 +299,7 @@ public class ExternalAuthService :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add a namespace for : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add a namespace for : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -447,7 +447,7 @@ In the preceding example: :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add the authorization services and the Blazor abstraction to the service collection: +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add the authorization services and the Blazor abstraction to the service collection: ```csharp builder.Services.AddAuthorizationCore(); @@ -636,7 +636,7 @@ The following steps describe how to: * Resolve the `AuthenticatedUser` service to set the authenticated user's claims principal. See your identity provider's documentation for details. * Return the built host. -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add namespaces for and : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add namespaces for and : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -831,7 +831,7 @@ public class ExternalAuthService :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add a namespace for : +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add a namespace for : ```csharp using Microsoft.AspNetCore.Components.Authorization; @@ -979,7 +979,7 @@ In the preceding example: :::zone pivot="maui" -In the `MauiProgram.CreateMauiApp` method of `MainWindow.cs`, add the authorization services and the Blazor abstraction to the service collection: +In the `MauiProgram.CreateMauiApp` method of `MauiProgram.cs`, add the authorization services and the Blazor abstraction to the service collection: ```csharp builder.Services.AddAuthorizationCore();