Hi
I have a rest-based wcf webservice which currently uses a custom form of basic authentication (that is I perform basic authentication but validate the user/password against a custom db). I need to introduce windows authentication. I am using a request interceptor
to perform the authentication.
public class GatewayHostFactory : WebServiceHost2Factory
{
protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
string serviceURI = ConfigurationManager.AppSettings[Constants.ServiceURI];
Uri webServiceAddress = new Uri(serviceURI);
GatewayHost webServiceHost = new GatewayHost(serviceType, webServiceAddress);
AuthenticationInterceptor Auth = new AuthenticationInterceptor("GatewayService");
webServiceHost.Interceptors.Add(Auth);
return webServiceHost;
}
and then as a authentication message comes in firstly trying to authenticate a windows
View Complete Post