Symptoms
When attempting to deploy a solution to a production environment the following error occurred:
ID4148: The Saml2SecurityToken is rejected because the SAML2:Assertion's NotOnOrAfter condition is not satisfied.
NotOnOrAfter: '10/28/2015 2:21:35 AM'
Current time: '10/30/2015 4:46:06 PM'
Attempts were made to run the registration wizard and browser cache was cleared.
Diagnoses
Due to the nature of this error it appeared to be an issue with the trust between K2 Appit for SharePoint and the SharePoint environment.
Resolution
This error was remedied by retrusting the K2 Appit for SharePoint app by doing the following:
1. On the main SharePoint page for the site collection encountering this error access the "Site Contents" of SharePoint.
2. In the Site Contents of the environment find the K2 Appit for SharePoint app. Hover over the app to find an elipsis, click this elipsis as well as the second elipsis that appears. Select "Permissions".
3. On the Permissions page find the 'here' link in the portion of the page that states "If there's something wrong with the app's permissions, click here to trust it again".
After retrusting the application, the list that was unable to be deployed to was tested to check if the solution was able to be deployed. The solution was successfully deployed and the issue appears to be remedied.