C
C#10mo ago
DNA

❔ Authentication on a ASP.NET application hosted on IIS

Hi, I'm very new to deployment on IIS, and I'm very sure that it's just some configuration that isn't setup correctly. The main problem is that my application works fine when I run it locally, It also works fine if I run the compiled .exe on the actual server itself, So the code works on the machine I have IIS on. But when I try to deploy the code to the IIS it doesn't behave correctly. It's an application that uses AzureAD for authentiocation. It's OpenID in the code and I use the method "Challange" to make the authentication request. When I run the code locally and on the server manually, everything works as expected. I go to a login screen, I click the "Connect" button (this is a page I've made), That button in the code called the method Challange that is supposed to redirect me to the AzureAD sign-in page. And this is where things break when it's deployed to IIS, it just loads for a few seconds and then I'm back, when I check the network traffic in the browser, it looks like AzureAD never is called at all. My guess is that something in the IIS configuration is blocking this redirect to AzureAD sign-in page, but I haven't been able to find what that could be when googling. Here are two pictures of the network traffic, The one with just two "Login" is when the code is on IIS, and the other with "authorize" is when it's run locally. The first Login request is the code snippet that executes the "Challenge" method that could redirect the user.
1 Reply
Accord
Accord10mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.