The data protection operation was unsuccessful on Azure using OWIN / Katana

前端 未结 7 1017
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 19:37

I\'m trying to implement password reset on an OWIN/Katana based ASP.NET MVC website running in Azure.

It works fine when run locally but fails in production.

相关标签:
7条回答
  • 2020-12-08 20:38

    I have the same problem when I try to generate token with ASP .Net identity and custom login function in Web API.

    "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."

    What I did is just simply create an Application Setting called WEBSITE_LOAD_USER_PROFILE in Microsoft Azure and set it to 1. That solution works for me.

    You can see the detail here

    0 讨论(0)
提交回复
热议问题