asp.net identity 2 - How to add some claims to ClaimsIdentity but do not serialize them into the cookie -


i using asp.net identity 2 cookie authentication. want add permissions of user current claimsprincipal because there many permissions , cookie limited in size don't want serialize claims of identity cookie. want load claims during login , cache them server-side. have hook in add claims current principal on each request?

i found solution. interface iauthenticationsessionstore need. implementation of interface, setting instance of on cookieauthenticationoptions.sessionstore property, can decide how persist whole claimsprincipal during requests without serializing cookie.

tarzan, pardon, vittorio bertocci presenting details interface here.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -