Posted on: 1/11/2014 9:12:45 PM | Views : 882

Hi,
I'm looking in to windows authentication with WebAPI (Although I'm sure the same question may apply to MVC and possibly web forms). I created a web project and selected WebAPI and mvc, and chanegd the authentication type to windows (All in the new project screen).
I looked in the webconfig expecting to see an authentication element within the system.web element, but no. I then looked through the rest of the application and I couldn't find any reference to windows authentication.
So my question is, how does WebAPI know that I want to use Windows Authentication, and how do I change it to some other form of Authentication in the future if the need arises?

A separate but related question, what if I want to provide windows and custom authentication together? (I know it's probably not a good idea, but I can imagine someone asking me one day).

Go to the complete details ...