views:

16

answers:

0

Hi there,

I want to implement a custom identity validator in my client for my WCF service, however I want to use BasicHTTPBinding. Can anyone tell me where I set my IdentityVerifier? The only examples I have seen extract a type of SecurityBindingElement from a secure binding (i.e. WsHttpBinding) and set the IdentityVerifier on that, but by using BasicHttpBinding I don't have a SecureBindingElement (just a TextMessageEncodingBindingElement and a HttpTransportBindingElement).

This is my binding configuration:

BasicHttpBinding binding = new BasicHttpBinding();
binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;

I'm a little worried that I already know the answer to this, and that it's 'a service will only send its credentials over a secure binding' but maybe somebody knows how to configure a BasicHttpBinding to allow me to access the service identity and to verify it with my own verifier class?

Thanks for reading,

Chris.