ClaimsCookie 0.9.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package ClaimsCookie --version 0.9.3                
NuGet\Install-Package ClaimsCookie -Version 0.9.3                
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="0.9.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClaimsCookie --version 0.9.3                
#r "nuget: ClaimsCookie, 0.9.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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=0.9.3

// Install ClaimsCookie as a Cake Tool
#tool nuget:?package=ClaimsCookie&version=0.9.3                

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 Dictionary<string, string>
           {
               { "name", "John Foo" },
               { "id", "1234" },
               { "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.

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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 13,672 7/23/2013
1.0.0 1,599 7/1/2013
0.9.6 1,641 5/7/2013
0.9.5 1,310 5/7/2013
0.9.4 1,299 5/7/2013
0.9.3 1,345 3/21/2013
0.9.2 1,600 3/20/2013
0.9.1 1,364 3/20/2013
0.9.0 1,310 3/20/2013