Forms STS web.config File Settings

The following table lists the settings available in the FormsSTS web.config file. You should contact support before making any changes to these settings.

Node Change permitted? Description Example Value
General Settings

<add key="webpages:Version" value="2.0.0.0" />

No    
<add key="webpages:Enabled" value="false" />
No    
<add key="PreserveLoginUrl" value="true" />
No    
<add key="ClientValidationEnabled" value="true" />
No    
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
No    
The following five entries are used to authenticate against the default asp.net membership provider
<add key="UseAspNetMembershipProvider" value="False" />
No    
<add key="IssuerName" value="FormsSTS" />
Set by default and should not need to be changed The Issuer name for the K2 Forms STS as configured in the Claims configuration  
<add key="Thumbprint" value="A610A58E165BAE111C7CCF6B6EDDC0306571BC3C" />
Set by default and should not need to be changed The Forms STS issuer thumbprint. The K2 Server checks to make sure it trusts an issuer by validating the thumbprint it has configured for the issuer against that issuer's certificate used to sign the token.  
<add key="SessionTokenLifetime" value="28800" />
  The SessionTokenLifetime controls how many seconds the session token remains valid. This is normally set to around 8 hours (28800 seconds). This value can not be larger than 86400 (1 day)  
<add key="MaximumTokenLifetime" value="28800" />
No This config value currently has no effect  
SmatForms App Settings
<add key="HostName" value="SA-LABSDLX" />
Yes This config value controls which host machine the STS connects to, to retrieve and store information as well as authenticated users. The hostname or ip address of the K2 Host Server machine
<add key="HostPort" value="5555" />
Yes This config value is used to specify which port to use for K2 host server communication. The port number that host server is configured to listen on.
<add key="WorkflowPort" value="5252" />
Yes This config value is used to specify which port to use for K2 workflow server communication. The port number that the K2 workflow server is configured to listen on.
<add key="DefaultAuthData" value="" />
No This config value should not be used and is legacy for UserProviders that needed a AuthData value for authentication.  
<!--<add key="DefaultSecurityLabel" value="K2"/>-->
Yes The DefaultSecurityLabel is used when none is specified. Leave blank or missing to use the URM default security label.  
<!--<add key="SecurityLabels" value="K2;K2SQL"/>-->
Yes SecurityLabels that are available. Leave blank or missing to use the all URM security labels. Semi-colon separated list.
<!--<add key="IntegratedSecurityLabels" value="K2"/>-->
Yes SecurityLabels that use integrated security Semi-colon separated list.
<add key="ExcludedSecurityLabels" value="SP" />
Yes SecurityLabels that should be excluded when authenticating users. Used if very specific security labels should be used or not used by the Forms STS (for example don’t allow users to log in with their windows credentials on the forms sts) Semi-colon separated list.
Advanced Connection settings
<!--<add key="Forms.UseConnectionPerRequest" value="true"/>-->
No These settings are for advanced scenarios and testing purposes – do not change them as they may have grave performance and stability impacts.  
<!--<add key="Forms.UseConnectionPooling" value="true"/>-->
No  
<!--<add key="Forms.MinConnectionPoolSize" value="0"/>-->
No  
<!--<add key="Forms.MaxConnectionPoolSize" value="0"/>-->
No  
<!--<add key="Forms.AuthenticationCookie.Name" value=".K2AUTH"/>-->
No  
<!--<add key="Forms.AuthenticationCookie.Duration" value="0"/>-->
No  
<add key="Forms.Web.Cache.TraceEnabled" value="false" />
No  
<!-- Site Session Expiration Handling settings -->
<add key="MultiLoopCheckTimeoutInterval" value="5" />
Yes Used to detect redirect loops that may occur when there is problem during authentication. A user may visit the STS a maximum of five times in the interval specified by the configuration setting.  
<!--<add key="SecurityLabel.K2SQL.Methods" value="5;7" />-->
No This config value is specified per security label and lists the methods that are used to authenticate the user against K2 Host Server with the credentials supplied on the login form. A semi-colon separated list of numbers 1-8.