Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.0% on nuget.org
Top 9.6% downloads on nuget.org
Top 6.8% dependent packages on nuget.org
Top 3.2% dependent repos on nuget.org
Top 6.4% forks on nuget.org

nuget.org : 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", "[email protected]") }; 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.

Registry - Homepage - JSON
purl: pkg:nuget/claimscookie
Keywords: WIF, Session, Cookie, ASP.NET, Auth0
License: MIT
Latest release: over 124 years ago
First release: about 11 years ago
Dependent packages: 2
Dependent repositories: 5
Downloads: 25,995 total
Stars: 6 on GitHub
Forks: 6 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 10 days ago

    Loading...
    Readme
    Loading...