From 89cdcd83f00a5e7be3d0df52d6b9652f93aa00b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 16 Feb 2024 15:24:08 +0100 Subject: [PATCH] Update the ASP.NET Web API samples to use SuppressDefaultHostAuthentication() --- samples/Kalarba/Kalarba.Server/Startup.cs | 1 + samples/Mortis/Mortis.Server/Startup.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/Kalarba/Kalarba.Server/Startup.cs b/samples/Kalarba/Kalarba.Server/Startup.cs index 116699d1b..e421e20a5 100644 --- a/samples/Kalarba/Kalarba.Server/Startup.cs +++ b/samples/Kalarba/Kalarba.Server/Startup.cs @@ -128,6 +128,7 @@ public void Configuration(IAppBuilder app) }; configuration.MapHttpAttributeRoutes(); + configuration.SuppressDefaultHostAuthentication(); // Configure ASP.NET Web API to use token authentication. configuration.Filters.Add(new HostAuthenticationFilter(OpenIddictValidationOwinDefaults.AuthenticationType)); diff --git a/samples/Mortis/Mortis.Server/Startup.cs b/samples/Mortis/Mortis.Server/Startup.cs index a8870a81a..1919b5289 100644 --- a/samples/Mortis/Mortis.Server/Startup.cs +++ b/samples/Mortis/Mortis.Server/Startup.cs @@ -103,6 +103,7 @@ public void Configuration(IAppBuilder app) }; configuration.MapHttpAttributeRoutes(); + configuration.SuppressDefaultHostAuthentication(); // Register the Autofac Web API integration and Web API middleware. app.UseAutofacWebApi(configuration);