OWIN support for Sitecore prior to SXP 9.0
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sitecore.Owin
.gitattributes
.gitignore
LICENSE
README.md
Sitecore.Owin.sln
Sitecore.Owin.xml

README.md

Sitecore Owin

Sitecore module that provides OWIN support by adding an extension point to use OWIN middlewares through the Sitecore pipeline.

How to install?

Sitecore Owin is available as a nuget package https://www.nuget.org/packages/Sitecore.Owin:

Install-Package Sitecore.Owin

It will install all necessary dependencies as well as patch your web.config by adding:

<appSettings>
  ...    
  <add key="owin:appStartup" value="Sitecore.Owin.Startup, Sitecore.Owin" />
</appSettings>

How to use?

  1. Implement a class with a public method void Process(InitializeOwinMiddlewareArgs args)
public class SampleOwinMiddleware
{
  public void Process(InitializeOwinMiddlewareArgs args)
  {
    args.App.Use((context, next) =>
    {
      context.Response.Headers.Append("Yes", "it works");
      return next();
    });
  }
}
  1. Patch the sitecore/pipelines/initializeOwinMiddleware pipeline to add your processor

Copyright 2016 Vyacheslav Pritykin