WCF/WF - WCF : username/password authentication with basicHttpBinding

Asked By Indranil Chatterjee on 25-Feb-11 05:28 AM
WCF doesn't support username/password authentication with basicHttpBinding when security mode is "message". In fact one has to use "TransportWithMessageCredentials" to be able to use it. what could bethe reason for it?
Also, on http based bindings, for any form of client credential type other than "windows", WCF requires the service to provide a certificate. Why?
Gediminas replied to Indranil Chatterjee on 05-May-11 05:02 PM

IIS or WAS hosted services do have BASIC authentication working in BasicHttpBinding mode. You need switching to SSL (Transport security mode) and rely on services provided by host. I implemented that and it works perfectly. Here is client-side configuration:



    <security mode="Transport">

       <transport clientCredentialType="Basic" proxyCredentialType="None"

          realm="" />





MSDN provides nice HowTo. Look at http://msdn.microsoft.com/en-us/library/ff649647.aspx