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

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -