I have a WCF service deployed on another machine and I want to authenticate the client against the WCF service.
I have done the following things :
1) In IIS I have unchecked the Anonymous access and checked the "Integrated Windows Authenfication" check box.
2) My Web config
<authentication mode="Windows" />
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBind">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="Ntlm" />
</security>
</binding>
</basicHttpBinding>
</bindings>
3) On the client side I am passing the user credential as below :
MyServiceClient _client;
_client = new MyServiceClient();
_client.ClientCredentials.Windows.ClientCredential.UserName = "username";
_client.ClientCredentials.Windows.ClientCredential.Password = "password";
_client.ClientCredentials.Windows.ClientCredential.Domain = "mydomain";
My Question is how can trap the user name and password on the server side )where the service is deployed) ?
How can I authenticate user against the credential passed ?
Currently I am using basichttp binding .. is this binding good enough to support security model?
Please Help!!