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();