[Mono-list] WCF - ServiceSecurityContext

rjhdakota rjh at homeseer.com
Tue Feb 22 13:44:00 EST 2011


Thanks for that information. I was able to hook into the endpoint
AfterRecieveRequest and get the request object, but I can only find the
user/pass in the properties (on Windows). On MONO the properties object is
null. On the client side I am setting up the authentication as follows,
maybe you are doing something different? There are 2 headers that are passed
in the request, but neither has any login information.

Dim binding = New
BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.TransportCredentialOnly)
binding.Security.Transport.ClientCredentialType =
HttpClientCredentialType.Basic
Dim address = New EndpointAddress("http://192.168.1.135:8080")
Dim client = New HelloClient(binding, address)
client.ClientCredentials.UserName.UserName = "user"
client.ClientCredentials.UserName.Password = "pass"


augustwest wrote:
> 
> I was able to work around the missing SecurityContext (and the custom
> validators not firing for that matter) by adding a custom behavior to the
> endpoint and then using IDispatchMessageInspector (AfterReceiveRequest) to
> obtain the basic auth credentials from the request header.  This proved
> sufficient for my needs.
> 

-- 
View this message in context: http://mono.1490590.n4.nabble.com/WCF-ServiceSecurityContext-tp3307343p3319807.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list