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

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:

    • For .NET 2.0 SP1: compatibilityMode="Framework20SP1"

    • For .NET 2.0 SP2: compatibilityMode="Framework20SP2"


    <machineKey decryptionKey="xxxxxxx" validationKey="yyyyyyy" validation="SHA1" decryption="3DES" compatibilityMode="Framework20SP2"/>

  2. In the WorkflowGen loginsso.aspx file:

    // Get the cookie used to store your authentication token. 
    string tokenName="adAuthCookie";token=Request.Cookies[tokenName].Value;  
    // Decrypt the token and get the ticket.
    ticket = System.Web.Security.FormsAuthentication.Decrypt(token);