Skip to content

Commit

Permalink
Update the ASP.NET Web API samples to use SuppressDefaultHostAuthenti…
Browse files Browse the repository at this point in the history
…cation()
  • Loading branch information
kevinchalet committed Feb 16, 2024
1 parent c6700a6 commit 89cdcd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/Kalarba/Kalarba.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions samples/Mortis/Mortis.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 89cdcd8

Please sign in to comment.