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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -