Windows authentication WCF service

Feb 23, 2009 at 11:30 AM
I do not think there is any support for windows authentication using the RemotePageProvider services, I changed method SetProxyCredentials in RemoteProviderClient.cs from:

private void SetProxyCredentials()
{
            _RemoteProviderChannel.Credentials.UserName.UserName = _proxyUserName;
            _RemoteProviderChannel.Credentials.UserName.Password = _proxyPassword;
}

to:

private void SetProxyCredentials()
{
            _RemoteProviderChannel.Credentials.Windows.ClientCredential.Domain = "domainname";
            _RemoteProviderChannel.Credentials.Windows.ClientCredential.UserName = "domainusername";
            _RemoteProviderChannel.Credentials.Windows.ClientCredential.Password = "domainpassword";
}

then my windows authentication worked fine.