Sign in Sign up
nuget

ClaimsCookie

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.

nuget View on Nuget

Activity

Latest release
13y ago
Total releases
9
Cadence
~daily
Last 12 months
0

Details

First release
Mar 20, 2013
Releases
Version Released
1.1.0 minor
1.0.0 major
0.9.6 patch
0.9.5 patch
0.9.4 patch
0.9.3 patch
0.9.2 patch
0.9.1 patch
0.9.0 initial