ASP.NET Identity 2 - UserManager.ConfirmEmail Fails In Production

后端 未结 1 1714
北海茫月
北海茫月 2021-01-26 07:09

I\'ve set up OWIN in an ASP.NET MVC app (including email confirmation). When an account is created I get an email containing a link to confirm my email. When I visit the link, I

1条回答
  •  清酒与你
    2021-01-26 07:37

    OK, here are a couple of things to try.

    If you have a different domain generates the cookie than does the confirmation, you need to share a machine key between then.

    If you are using DpapiDataProtectionProvider() as your provider, you may have a problem in that your app pool name is unknown to you. You have to configure it differently at startup and then use the app pool name that gets set in your options .. somehow! I didnt have to do that because I am using aws and could just set the app pool name. You also have to set the app pool's LoadUserProfile setting to true.

    Hope that helps!

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