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.


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", "")


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


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.
#r "nuget: ClaimsCookie, 1.1.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 6,343 7/23/2013
1.0.0 898 7/1/2013
0.9.6 1,078 5/7/2013
0.9.5 743 5/7/2013
0.9.4 739 5/7/2013
0.9.3 786 3/21/2013
0.9.2 1,031 3/20/2013
0.9.1 823 3/20/2013
0.9.0 727 3/20/2013