I have an OWIN/Katana WebAPI that is using Windows Authentication. When I run it locally, it's able to take in my windows credentials. However, when I deploy the WebAPI to a server/cluster, it keeps prompting me for my login and password.
I currently have the following in the Startup.cs:
//Set up integrated windows authentication.
HttpListener listener = (HttpListener)appBuilder.Properties["System.Net.HttpListener"];
listener.AuthenticationSchemes = AuthenticationSchemes.IntegratedWindowsAuthentication;
I even tried this as well:
HttpListener listener = (HttpListener)appBuilder.Properties["System.Net.HttpListener"];
listener.AuthenticationSchemes = AuthenticationSchemes.Negotiate;
In Fiddler, I was able to hit my API (on the server) by Enabling Authentication. But if I consume the API from another application, it automatically comes back with a 401 Unauthorized. Why is it still prompting a manual login even when I specifically made it Windows Authentication?
I've been following these articles:
https://blogs.msdn.microsoft.com/chiranth/2013/09/20/ntlm-want-to-know-how-it-works/