[Mono-dev] WCF and TransportCredentialOnly

rjhdakota rjh at homeseer.com
Tue Feb 15 15:07:31 EST 2011


I am working on a WCF service in MONO and currently testing it under MAC OS.
I had 2.8 but updated to the latest in SVN. My service is allowing
connections no matter how I set it up. Is user authentication supported?
Here is my service, note that it works fine in Windows and I can validate
user/pass with my custom validation function. On the MAC, my client always
connects, no challenge to the user/pass. Am I missing a property?

Public Sub WCFStartService()
        ' http service, one-way

        Dim binding = New
BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.TransportCredentialOnly)
        binding.Security.Transport.ClientCredentialType =
HttpClientCredentialType.Basic

        Dim address = New Uri("http://192.168.1.129:8080")
        ServiceHost = New ServiceHost(GetType(HelloService))

       
ServiceHost.Credentials.UserNameAuthentication.UserNamePasswordValidationMode
= Security.UserNamePasswordValidationMode.Custom
       
ServiceHost.Credentials.UserNameAuthentication.CustomUserNamePasswordValidator
= New CustomUserNameValidator

        ServiceHost.AddServiceEndpoint(GetType(IHelloService), binding,
address)
        ServiceHost.Open()
    End Sub
-- 
View this message in context: http://mono.1490590.n4.nabble.com/WCF-and-TransportCredentialOnly-tp3307532p3307532.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list