Sav*_*age 7 c# owin asp.net-identity
在我们IdentityManager班上,我们有以下几行:
protectionProvider = new DpapiDataProtectionProvider("OurProduct");
Run Code Online (Sandbox Code Playgroud)
最后一个参数的含义是什么,它是否与在IIS上设置站点的方式有任何关联?
背景:
我们已经部署MVC5网站有一个自定义IdentityManager类的验证环境中长时间不麻烦,现在我们正在尝试重置用户密码的时候了以下问题:
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.
Run Code Online (Sandbox Code Playgroud)
以下线程中描述了一些解决方案: 生成重置密码令牌在Azure网站中不起作用
一切都位于同一台机器上:IIS,Sql Server,Firefox测试浏览器.
不幸的是我没有的概念十足的把握,我想弄清楚的测试环境是如何才能引发这一问题,它以前从未发生过变化?
| 归档时间: |
|
| 查看次数: |
947 次 |
| 最近记录: |