System.Web.Security.FormsAuthenticationModule, ( , ). AuthenticateRequest, EndRequest, HTTP- 401.
, (, System.Web.Security.UrlAuthorizationModule) "".
URL- API, ,
<location />
web.config .
EDIT: - ...
, :-) , Zhaph - Ben Duguid .
...
. , . , : .config.
, API -...
, URL/api/search/foo ( ) . , . "location" , - .
"" API, , ( , FormsAuthenticationModule, ).