OWIN AES data protector provider
C#
Latest commit 95d714b Jun 7, 2015 @i4004 Statuses display enhancement

README.md

Owin.Security.AesDataProtectorProvider

Owin.Security.AesDataProtectorProvider - is an AES cryptic provider for OWIN autnetication middlewares. It is based on managed and CSP .Net framework providers.

Package status

Latest version Nuget version
Dependencies NuGet Status

Issues status

Ready issues
Stories in Ready

Build status

Platform Status of last build
.NET (4.5) AppVeyor build status
Mono (3.8.0) Travis build status

Examples

Registration

public class Startup
{
    public void Configuration(IAppBuilder app)
    {
        ...
        app.UseAesDataProtectorProvider();
        ...
    }
}
Usage with custom key:
...
app.UseAesDataProtectorProvider("my key");
...
Enabling usage with FIPS-compliant CSP provider:
...
app.UseAesDataProtectorProvider(null, true);
...

or

...
app.UseAesDataProtectorProvider("my key", true);
...

Usage example with cookie authentication

public class Startup
{
    public void Configuration(IAppBuilder app)
    {
        app.UseCookieAuthentication(new CookieAuthenticationOptions
        {
            AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
            LoginPath = new PathString("/login")
        });

        app.UseAesDataProtectorProvider();
    }
}