We worked on the OWIN MVC5 project. We use our own implementation of IUserStore<T> to integrate user management, which is part of the structure of our companies. So far, this works great. We want to provide role membership and a different security configuration through claims. I saw (and quickly tested) ways to implement IUserClaimStore<T> or attach a ClaimsIdentityFactory to a UserManager.
In both scenarios, I see that the claims are stored in user cookies and when the role or other requirement changes for the web application (through another application that directly accesses the user management repository), the user cookie contains old claims and the user has too many or fewer permissions than she should have.
The probability that occurred to me was to check each request or for requests for a certain period of time, if the back configuration of user requests was changed, and if so, update the user cookie.
Is this the right approach or MVC5 / Owin provides a more elegant / efficient way to fulfill this requirement. If this is the right and only approach, where would be the most effective place to check and update cookie information?
cookies wif asp.net-mvc-5 asp.net-identity owin
HCL
source share