adding security

This commit is contained in:
Frank
2021-06-06 13:34:07 -04:00
parent b83370cf37
commit 2a52b82e0e
10 changed files with 149 additions and 19 deletions
+2
View File
@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Azure.Functions.Authentication.WebAssembly;
namespace SimpleDemo
{
@@ -18,6 +19,7 @@ namespace SimpleDemo
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddStaticWebAppsAuthentication();
await builder.Build().RunAsync();
}