c# - How to setup windows authentication for empty ASP Net application template -
i want create web application using web api 2 uses windows authentication in company use. don't want use mvc nor web forms. there way empty asp net template set user not required log in, while code client in framework of choice ?
the users access app company pc computers login using windows domain.
i trying same thing, , ended adding having add microsoft.aspnet.mvc nuget package project working correctly. don't have use mvc, adding package project enough.
then add following web.config file , should good.
<authentication mode="windows" /> <authorization> <deny users="?" /> </authorization>
if debugging in visual studio, sure set windows authentication enabled in properties window. not set when create empty project.
Comments
Post a Comment