Users can’t log in to Strategy Web/Library/Mobile using SAML authentication. After authenticating on the IDP provider page, the following error message shows in the interface:
"Error in login" Please contact your administrator
Error validating SAML message org.opensaml.common.SAMLException: Response issue time is either too old or with date in the future, skew 60
When SAML authentication is done, there is a default response skew allowance of 60 seconds against the client. This error will occur when this allowance is exceeded, usually due to the IDP and SP having different time clocks.
1. Make a backup of the SpringSAMLConfig.xml located under WEB-INF/classes/resources/SAML
2. Open the file and locate the following beans:
<bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"/>
<bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"> <property name="maxAuthenticationAge" value="2592000"/> <!-- 30 days --><property name="responseSkew" value="300"/> </bean>
<bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl"/>
<bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl"> <property name="responseSkew" value="300"/> </bean>