ASP.Net MVC identity infinite redirect loop

后端 未结 4 1238
说谎
说谎 2021-01-14 09:13

I have an ASP.Net MVC5 application, using the Identity \"out of the box\" template, as per ASP.Net Identity 2.0.0. I need to upgrade it to use the newer code that is in the

4条回答
  •  無奈伤痛
    2021-01-14 09:26

    Resolved... turns out the culprit was my Unity DI configuration.

    I drilled deep to find the errors getting recursively thrown on each redirect, and it suggested the AccountController dependencies weren't being instantiated. I had a similiar issue last year Unity Container trying to resolve non registered type, throwing error , and so I looked further into the changed dependencies.

    Following the suggested answer at Register IAuthenticationManager with Unity resolved the issue.

    Thanks for the suggestions re: SSL / HTTPS / Filters, investigating these led me to the exceptions.

提交回复
热议问题