Asp.net core Identity successful login redirecting back to login page

后端 未结 6 930
长情又很酷
长情又很酷 2020-11-30 12:38

I have a problem where the asp.net identity framework is redirecting the user back to the login page after they have logged in successfully.

This is using the stand

6条回答
  •  半阙折子戏
    2020-11-30 13:33

    I had to do a couple of these solutions.

    First, I had app.UseAuthentication(); and app.UseAuthorization(); in the incorrect order.

    Second, After making the adjustment to startup.cs I was still experiencing the same problem. Doing a hard refresh a few times fixed it (can also just clear the browser cache).

提交回复
热议问题