The App component ( App.razor) is similar to the App component found in Blazor Server apps: The app internally calls methods defined in the script to perform the authentication operations. The Index page ( AuthenticationService handles the low-level details of the OIDC protocol. To create a new Blazor WebAssembly project with an authentication mechanism in an empty folder, specify the Individual authentication mechanism with the -au|-auth option to store users within the app using ASP.NET Core's Identity system: dotnet new blazorwasm -au Individual -ho -o. In the Additional information dialog, select Individual Accounts as the Authentication Type to store users within the app using ASP.NET Core's Identity system. For more information, see Dashes in a hosted Blazor WebAssembly project name break OIDC security (dotnet/aspnetcore #35337). Pascal case ( BlazorSample) or underscores ( Blazor_Sample) are acceptable alternatives. Logic in the Blazor WebAssembly project template uses the project name for an OIDC app identifier in the solution's configuration. Avoid using dashes ( -) in the project name that break the formation of the OIDC app identifier.
0 Comments
Leave a Reply. |