c# - Is it possible to use Windows authentication only for a single controller in ASP.NET Web API? -
i have rest api made asp.net web api controller action want restrict access.
basically, action delete whole database behind application, that's why need restrict it.
msdn states have modify web.config turn on windows authentication whole application:
<system.web> <authentication mode="windows" /> </system.web>
but expose whole api internet without authentication, , enable windows authentication , authorization specific controller action.
is possible? everywhere on internet see examples restrict whole app.
Comments
Post a Comment