In our IdentityManager
class we have the follow line:
protectionProvider = new DpapiDataProtectionProvider("OurProduct");
What is the implication of that last parameter, and does it have any correlation to how the site is set up on IIS?
Background:
We've been deploying an MVC5 site with a custom IdentityManager
class to a validation environment for a long time without hassles, and now we're getting the following issue when attempting to reset user passwords:
System.Security.Cryptography.CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.
Some solutions are described in the following thread: Generating reset password token does not work in Azure Website
Everything is located on the same machine: IIS, Sql Server, Firefox test browser.
Unfortunately I don't have a full grasp of the concepts and I'm trying to figure out how the test environment has changed in order to trigger this issue where it's never happened before?