[Mono-list] WCF - ServiceSecurityContext

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Tue Feb 15 21:58:24 EST 2011


Yes it is normal. Basic authentication is known to work, but 
ServiceSecurityContext is not implemented.

Atsushi Eno

(2011/02/16 3:30), augustwest wrote:
> I have successfully implemented a very simple self-hosted WCF service using
> BasicHttpBinding however I am unable to validate the basic authentication
> credentials.  In addition, ServiceSecurityContext.Current is always null
> when receiving a request.  Is this normal?
>
> My service is implemented as such....
>
> BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
> basicHttpBinding.Security.Mode = BasicHttpSecurityMode.Transport;
> basicHttpBinding.Security.Transport.ClientCredentialType =
> HttpClientCredentialType.Basic;
> basicHttpBinding.Security.Transport.ProxyCredentialType =
> HttpProxyCredentialType.None;
> basicHttpBinding.Security.Transport.Realm = String.Empty;
> basicHttpBinding.Security.Message.ClientCredentialType =
> BasicHttpMessageCredentialType.Certificate;
> basicHttpBinding.Security.Message.AlgorithmSuite =
> System.ServiceModel.Security.SecurityAlgorithmSuite.Default;
> ....
>



More information about the Mono-list mailing list