From 537bed159b78e0e9068903fd85eb34db09b96db4 Mon Sep 17 00:00:00 2001 From: Will Godbe Date: Tue, 17 Mar 2020 14:55:38 -0700 Subject: [PATCH] Fix some stuff --- .../BlazorSignalRApp/Client/BlazorSignalRApp.Client.csproj | 1 + .../BlazorSignalRApp/BlazorSignalRApp/Server/Startup.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Client/BlazorSignalRApp.Client.csproj b/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Client/BlazorSignalRApp.Client.csproj index 04140ae..e5cd3fc 100644 --- a/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Client/BlazorSignalRApp.Client.csproj +++ b/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Client/BlazorSignalRApp.Client.csproj @@ -10,6 +10,7 @@ + diff --git a/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Server/Startup.cs b/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Server/Startup.cs index 828a76d..de2b55b 100644 --- a/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Server/Startup.cs +++ b/SigRBlazor/BlazorSignalRApp/BlazorSignalRApp/Server/Startup.cs @@ -37,8 +37,8 @@ public void ConfigureServices(IServiceCollection services) { // Configure the Authority to the expected value for your authentication provider // This ensures the token is appropriately validated - options.Authority = "http://localhost:5000/"; - options.RequireHttpsMetadata = false; + //options.Authority = "http://localhost:5000/"; + //options.RequireHttpsMetadata = false; // We have to hook the OnMessageReceived event in order to // allow the JWT authentication handler to read the access @@ -88,8 +88,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseHsts(); } - app.UseAuthentication(); app.UseHttpsRedirection(); + app.UseAuthentication(); app.UseBlazorFrameworkFiles(); app.UseStaticFiles();