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:

  1. Create New Project from the Start page in Visual Studio.
  2. Select Visual C# Installed Template named Windows Desktop.
  3. Select Console Application in the center pane.
  4. Name the project as Chapter06.WindowsAuthenticationKatana and click OK:

    Fig 8 – We have named the Console Application ...

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.