I just developed a WCF service that I was calling with AngularJS. After a while, I noticed that I needed the user to authenticate himself with its windows credentials. Therefore, I turned "windows authentication" mode on and "anonymous authentication" off. When I call my service in the browse, I'm prompted to log myself in but when I do I get a blank response. When I check the status of it, I get a 400. Here is my web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
...
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<system.webServer>
...
</system.webServer>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpEndpointBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
<service name="TeamCity.WebServices.ConfigurationService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding" contract="TeamCity.Interfaces.IConfigurationService" />
</service>
</services>
</system.serviceModel>
</configuration>
Does anyone have an idea ?