I am using Identity Server v3 as my OWIN middlerware with an ASP.NET MVC application. On my production server I am getting into infinite loop when user is trying to login.
After user is successfully authenticated, I can see that the request is redirected back to the app and immediately redirected back to identity server and the loop continues.
This happens only on my prod server when I am trying to host the application inside "Default Web Site". Default Web Site is using default ports for http and https. If I host my application as a separate website or as an application inside another website, everything works fine.
My default web site has applications configured to use both Classic and Integrated pipeline modes. I tried to replicate this scenario just to make sure I am not missing something and I have no problems.
I have verified to make sure all other Identity Server configurations are correct. Can anybody throw an idea on what else I can verify?