This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

When clicking on the K2 Application ribbon the following error appears:
"SAML token has expired. Please ensure that the servers dates and times are synchronized"

Image

Symptoms

This error will prevent the K2 Administrator from creating and publishing SmartObjects, Forms, Views and Workflows.

Resolution

To determine the time difference on your environment, please raise a K2 Support ticket so this can be validated.

The below key can be inserted on the SmartForm Runtime\web.config to bypass the time sync behaviour:

<add key="Claims.SamlTokenValidity" value="3600" />

This Claims.SamlTokenValidity value is 1 hour in seconds.

Note that this is a workaround for this error and could also be caused by Regional settings or Time & Date settings on each server (IIS Server & App Server) that are out of sync.