If you want to use System.Web.Security.FormsAuthentication for SSO between your .NET 4 web application and WorkflowGen,
follow the procedure below:
-
In the
web.configfiles of WorkflowGen and your .NET 4 web application, add thecompatibilityModeattribute in themachineKey:-
For .NET 2.0 SP1:
compatibilityMode="Framework20SP1" -
For .NET 2.0 SP2:
compatibilityMode="Framework20SP2"
Example:
<machineKey decryptionKey="xxxxxxx" validationKey="yyyyyyy" validation="SHA1" decryption="3DES" compatibilityMode="Framework20SP2"/> -
-
In the WorkflowGen
loginsso.aspxfile:// 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);