# Setup: Authentication: SSO between a .NET 4 web application and WorkflowGen

**URL:** https://discuss.workflowgen.com/t/setup-authentication-sso-between-a-net-4-web-application-and-workflowgen/620
**Category:** Authentication
**Created:** [February 5, 2014, 6:31am UTC](https://discuss.workflowgen.com/t/setup-authentication-sso-between-a-net-4-web-application-and-workflowgen/620 "2014-02-05T06:31:40Z")
**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: [February 5, 2014, 6:31am UTC](https://discuss.workflowgen.com/t/setup-authentication-sso-between-a-net-4-web-application-and-workflowgen/620/1 "2014-02-05T06:31:40Z")

</div>

If you want to use `System.Web.Security.FormsAuthentication` for SSO between your .NET 4 web application and WorkflowGen,  
follow the procedure below:

1. In the `web.config` files of WorkflowGen and your .NET 4 web application, add the `compatibilityMode` attribute in the `machineKey`:

2. In the WorkflowGen [`loginsso.aspx`](https://discuss.workflowgen.com/t/setup-authentication-sso-integration-by-using-form-authentication/618) file:
