Enabling Windows authentication in Katana
Katana is a collection of projects to support OWIN with various Microsoft components for System.Web
and System.Net.HttpListener
.
We can plug Web API in an OWIN-based application rather than depending on System.Web
file. This can be achieved by installing the Microsoft.AspNet.WebApi.Owin
NuGet package that allows adding Web API to middleware pipeline.
Follow the steps to create a console application and enable Windows authentication in Katana:
- Create New Project from the Start page in Visual Studio.
- Select Visual C# Installed Template named Windows Desktop.
- Select Console Application in the center pane.
- Name the project as
Chapter06.WindowsAuthenticationKatana
and click OK:
Get ASP.NET Web API Security Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.