# Workflow Application: How to configure a WCF Service workflow application for IIS Windows Authentication

**URL:** <https://discuss.workflowgen.com/t/workflow-application-how-to-configure-a-wcf-service-workflow-application-for-iis-windows-authentication/473>\
**Category:** Workflow Applications\
**Created:** [December 10, 2013, 4:27am UTC](https://discuss.workflowgen.com/t/workflow-application-how-to-configure-a-wcf-service-workflow-application-for-iis-windows-authentication/473 "2013-12-10T04:27:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [December 10, 2013, 4:27am UTC](https://discuss.workflowgen.com/t/workflow-application-how-to-configure-a-wcf-service-workflow-application-for-iis-windows-authentication/473/1 "2013-12-10T04:27:23Z")

</div>

**Presentation**

This article will show you how to configure a WCF Service client and server for IIS Windows authentication.

This is the second part of the [Workflow Application: How to use a WCF Service as a workflow application with basicHttpBinding or wsHttpBinding](https://discuss.workflowgen.com/t/workflow-application-how-to-use-a-wcf-service-as-a-workflow-application-with-basichttpbinding-or-wshttpbinding/470) FAQ.

We’ll assume that the `WorkflowAppWCFSample` web site/app and the workflow application (including the client proxy .NET DLL) has been created, configured and function properly in Anonymous authentication.

**1. WCF Service web site/app configuration**

Edit the `WorkflowAppWCFSample` web.config and replace the complete `<system.serviceModel>` node with the one below.

```xml
<system.serviceModel> 
    <bindings> 
        <basicHttpBinding> 
            <binding name="BasicHttpBinding_IService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="104857600" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> 
                <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="104857600" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
                <security mode="TransportCredentialOnly"> 
                    <transport clientCredentialType="Windows"/> 
                </security> 
            </binding> 
        </basicHttpBinding> 
    </bindings> 
    <services> 
        <service name="WorkflowAppWCFSample.Service" behaviorConfiguration="ServiceBehavior"> 
            <endpoint address="" binding="basicHttpBinding" contract="WorkflowAppWCFSample.IService" bindingConfiguration="BasicHttpBinding_IService"> 
            </endpoint> 
        </service> 
    </services> 
    <behaviors> 
        <serviceBehaviors> 
            <behavior name="ServiceBehavior"> 
                <serviceMetadata httpGetEnabled="true"/> 
                <serviceDebug includeExceptionDetailInFaults="false"/> 
            </behavior> 
        </serviceBehaviors> 
    </behaviors>
</system.serviceModel>

```

In IIS, set the `WorkflowAppWCFSample` website/app (`http://localhost/wfgen/WfApps/WebServices/WorkflowAppWCFSample`) to **Windows authentication**.

You need to disable Anonymous authentication if it’s still enabled.

**2. WorkflowGen configuration for the WCF Service client proxy**

Edit the WorkflowGen web.config and replace the complete `<system.serviceModel>` node with the one below.

```xml
<system.serviceModel> 
    <bindings> 
        <basicHttpBinding> 
            <binding name="BasicHttpBinding_IService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="104857600" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> 
                <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="104857600" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
                <security mode="TransportCredentialOnly"> 
                    <transport clientCredentialType="Windows"/> 
                </security> 
            </binding> 
        </basicHttpBinding> 
    </bindings> 
    <client> 
        <endpoint address="http://localhost/wfgen/WfApps/WebServices/WorkflowAppWCFSample/Service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService" contract="WorkflowAppWCFSampleTest.IService" name="BasicHttpBinding_IService"> 
        </endpoint>
    </client>
</system.serviceModel>

```
