Setup: Authentication: SSO between a .Net 4 Web application and WorkflowGen


#1

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

  • In the web.config 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”

    e.g:

  • 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 ang get the ticket.ticket = System.Web.Security.FormsAuthentication.Decrypt(token);