Open Web Interface for .NET: Difference between revisions

Content deleted Content added
Afootsquab (talk | contribs)
Added reference from Microsoft
Afootsquab (talk | contribs)
Formatting
Line 1:
{{Short description|Web server interface standard}}
{{unreferenced|date=September 2016}}
'''OWIN''' (Open Web Interface for .NET) is a standard for an interface between .NET Web applications and Web servers.<ref>{{Cite web |last=Chonkar |first=Swapnal |title=Open Web Interface For .NET (OWIN) |url=https://www.c-sharpcorner.com/UploadFile/swapnal/open-web-interface-owin-for-net/ |access-date=2024-12-04 |website=www.c-sharpcorner.com |language=en}}</ref> It is a community-owned open-source project. Prior to OWIN, Microsoft's [[ASP.NET]]<ref>{{Cite web |last=ardalis |date=2024-12-02 |title=Open Web Interface for .NET (OWIN) with ASP.NET Core |url=https://learn.microsoft.com/en-us/aspnet/core/fundamentals/owin?view=aspnetcore-9.0 |access-date=2024-12-04 |website=learn.microsoft.com |language=en-us}}</ref> technology was designed on top of [[Internet Information Services|IIS]], and Web applications could not easily be run on another Web server (although note that despite this the Mono community developed several ASP.NET compatible Web servers, such as [[XSP (software)|XSP]]). OWIN aims to decouple the relationship between ASP.NET applications and IIS by defining a standard interface. Developers of Web servers can be sure that, if they implement OWIN correctly, ASP.NET applications will run on their server. Similarly, new [[Web framework]]s could be developed as an alternative to ASP.NET. As long as they target OWIN, they will run on any OWIN compatible Web server, including IIS.
 
OWIN aims to decouple the relationship between ASP.NET applications and IIS by defining a standard interface. Developers of Web servers can be sure that, if they implement OWIN correctly, ASP.NET applications will run on their server. Similarly, new [[Web framework]]s could be developed as an alternative to ASP.NET. As long as they target OWIN, they will run on any OWIN compatible Web server, including IIS.
In this regard, OWIN aims to do for .NET what [[Java Servlet]] and [[Servlet containers]] do for the [[Java virtual machine|JVM]].
 
In this regard, OWIN aims to do for .NET what [[Java Servlet]] and [[Servlet containers]] do for the [[Java virtual machine|JVM]]. Project Katana is a set of OWIN components built by Microsoft.
 
== OWIN as middleware ==
In addition to decoupling Web frameworks and Web servers, OWIN allows chaining together [[middleware]] into a pipeline. A Web framework can interact with OWIN without knowing whether it is interacting directly with the underlying web server, or with one or more layers of middleware (each implementing OWIN) on top of the Web server.

This allows infrastructure concerns, such as [[authentication]], to be split out into separate modules. This is desirable as it decouples them from the application's own code, and makes them reusable across applications. In Project Katana, Microsoft has made into OWIN modules several ASP.NET features that were previously part of the core ASP.NET framework. This allows them to be reused in other Web frameworks, and also ensures a cleaner separation from the application using them.
 
== See also ==