ClaimsCookie 1.1.0

An HttpModule that will serialize user information to a chunked protected cookie (with MachineKey) and deserialize on every request to a ClaimsPrincipal.

Usage:

var user = new List<KeyValuePair<string, object>>
{
new KeyValuePair<string, object>("name", "John Foo"),
new KeyValuePair<string, object>("id", "1234"),
new KeyValuePair<string, object>("email", "foo@gmail.com")
};

ClaimsCookieModule.Instance.CreateSessionSecurityToken(user);

That's it. Now, you will be able to access the user claims like this:

((IClaimsIdentity)User.Identity).Claims

The cookie will be chunked in multiple cookies to avoid hitting a limit if you are storing lots of user info and it will be deflated and protected with the machine key.

Install-Package ClaimsCookie -Version 1.1.0
dotnet add package ClaimsCookie --version 1.1.0
<PackageReference Include="ClaimsCookie" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClaimsCookie --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 4,339 7/23/2013
1.0.0 654 7/1/2013
0.9.6 818 5/7/2013
0.9.5 486 5/7/2013
0.9.4 466 5/7/2013
0.9.3 525 3/21/2013
0.9.2 771 3/20/2013
0.9.1 554 3/20/2013
0.9.0 470 3/20/2013