ClaimsCookie 1.1.0

.NET Framework 4.0
dotnet add package ClaimsCookie --version 1.1.0
NuGet\Install-Package ClaimsCookie -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: ClaimsCookie, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ClaimsCookie as a Cake Addin
#addin nuget:?package=ClaimsCookie&version=1.1.0

// Install ClaimsCookie as a Cake Tool
#tool nuget:?package=ClaimsCookie&version=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.

Product Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 9,420 7/23/2013
1.0.0 1,408 7/1/2013
0.9.6 1,472 5/7/2013
0.9.5 1,129 5/7/2013
0.9.4 1,117 5/7/2013
0.9.3 1,177 3/21/2013
0.9.2 1,415 3/20/2013
0.9.1 1,198 3/20/2013
0.9.0 1,109 3/20/2013