Owin.Security.AesDataProtectorProvider Save

OWIN AES data protector provider

Project README

Owin.Security.AesDataProtectorProvider

Nuget Version Nuget Download Build PackageLibraries.io dependency status for latest release CodeFactor Grade Platform

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

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);
...
public class Startup
{
    public void Configuration(IAppBuilder app)
    {
        app.UseCookieAuthentication(new CookieAuthenticationOptions
        {
            AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
            LoginPath = new PathString("/login")
        });

        app.UseAesDataProtectorProvider();
    }
}
Open Source Agenda is not affiliated with "Owin.Security.AesDataProtectorProvider" Project. README Source: i4004/Owin.Security.AesDataProtectorProvider
Stars
26
Open Issues
3
Last Commit
9 months ago

Open Source Agenda Badge

Open Source Agenda Rating