Question

Well the title basically sums it up, I'm wondering if I can create an OWIN pipeline to my ASP.NET Web API. I want to do this so I can apply a base security layer that I can apply to all of my API service hosted on my service server. New to OWIN, love the idea

Was it helpful?

Solution

Yes. You can start with this http://nuget.org/packages/Microsoft.AspNet.WebApi.Owin/0.21.0-pre and then you will need an another package depending on what host you choose.

OTHER TIPS

You will find below link helpful. It using Katana, an OWIN implementation for Microsoft hosts and the Web API framework.

http://www.strathweb.com/2012/12/running-aspnet-web-api-with-owin-and-katana/

Yes.

Also: If self-hosting Web API 2 using OWIN in a windows service, you can check out this example on GitHub: https://github.com/danesparza/OWIN-WebAPI-Service

It walks you through creating the service, adding OWIN using NuGet, and using attribute based routing in Web API 2.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top