asp.net mvc 5 - OnValidateIdentity disables the MVC OWIN remember me option -



asp.net mvc 5 - OnValidateIdentity disables the MVC OWIN remember me option -

when activate owin logout-everywhere feature via security stamps , utilize onvalidateidentity-callback of cookieauthenticationprovider securitystampvalidator-class, user logged out every time closes browser.

provider.onvalidateidentity = securitystampvalidator.onvalidateidentity<myusermanager, myuser>( system.timespan.fromseconds(10),(manager, user) => { homecoming user.generateuseridentityasync(manager); });

however, when plumbing myself (lookup , comparing of security stamps, rejecting or renewing identity) in onvalidateidentity-callback, seems work fine.

is known bug, or miss here something? or there documentation cookieauthenticationprovider , utilize of onvalidateidentity? digging google shows me simple samples, gives no farther insight.

additional information

i utilize own implementation of userstorage saves info in database i noted every page request calls 2 times getsecuritystampasync of userstorage, wheras when utilize implementation, 1 phone call done. installed identity version 2.0.1

this resolved in asp.net identity 2.2. see https://aspnetidentity.codeplex.com/workitem/2319

asp.net-mvc-5 asp.net-identity owin

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -