https://github.com/i4004/owin.security.aesdataprotectorprovider
OWIN AES data protector provider
https://github.com/i4004/owin.security.aesdataprotectorprovider
crypto-providers owin
Last synced: 7 months ago
JSON representation
OWIN AES data protector provider
- Host: GitHub
- URL: https://github.com/i4004/owin.security.aesdataprotectorprovider
- Owner: i4004
- License: lgpl-3.0
- Created: 2014-10-29T02:45:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T23:16:42.000Z (about 2 years ago)
- Last Synced: 2025-03-18T03:51:30.932Z (7 months ago)
- Topics: crypto-providers, owin
- Language: C#
- Size: 1.67 MB
- Stars: 26
- Watchers: 3
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Owin.Security.AesDataProtectorProvider
[](https://www.nuget.org/packages/Owin.Security.AesDataProtectorProvider)
[](https://www.nuget.org/packages/Owin.Security.AesDataProtectorProvider)
[](https://github.com/i4004/Owin.Security.AesDataProtectorProvider/actions/workflows/build.yml)[](https://libraries.io/nuget/Owin.Security.AesDataProtectorProvider)
[](https://www.codefactor.io/repository/github/i4004/Owin.Security.AesDataProtectorProvider)
`Owin.Security.AesDataProtectorProvider` - is an AES cryptic provider for OWIN authentication middlewares.
It is based on managed and CSP .Net framework providers.## Examples
### Registration
```csharp
public class Startup
{
public void Configuration(IAppBuilder app)
{
...
app.UseAesDataProtectorProvider();
...
}
}
```#### Usage with custom key
```csharp
...
app.UseAesDataProtectorProvider("my key");
...
```#### Enabling usage with FIPS-compliant CSP provider
```csharp
...
app.UseAesDataProtectorProvider(null, true);
...
```or
```csharp
...
app.UseAesDataProtectorProvider("my key", true);
...
```### Usage example with cookie authentication
```csharp
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/login")
});app.UseAesDataProtectorProvider();
}
}
```