ASP.Net MVC identity infinite redirect loop

后端 未结 4 1242
说谎
说谎 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条回答
  •  旧时难觅i
    2021-01-14 09:39

    Do you have SSL setup locally? Are authenticating on HTTPS then being redirected to HTTP which is killing the cookie & redirecting back to the HTTPS login page

    Have you got something in the web.config for forms authentication redirect like

      protection="All" requireSSL="true" loginUrl="~/Account/Login.aspx"
    

    Do your cookies look ok?

提交回复
热议问题