Spring security Saml - Time difference between SP and IDP

喜你入骨 提交于 2019-12-04 12:26:04

After Stefan's anwser, I knew where to look! Actually the docs did describe this thing, I just didn't pick it up: 10.3 Validity intervals. Cheers to Stefan for pointing out the responseSkew property!

Just add the property responseSkew to the WebSSOProfileConsumerImpl and SingleLogoutProfileImpl beans:

<bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl">
    <property name="responseSkew" value="600"/> <!-- 10 minutes -->
</bean>

<bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl">
    <property name="responseSkew" value="600"/> <!-- 10 minutes -->
</bean>
Stefan Rasmusson

Looks like the allowed time differance is hard coded.

See this source file look at the constant responseSkew. The default is 60 sec.

I think your best option here is to try to set the same time on the servers.

I know, the answer has been chosen, but I am sharing resolution which I have found for anyone working with Grails 3, spring security core, SAML 2.0.

I had to setmaxAssertionTime value along with responseSkew for WebSSOProfileConsumerImpl to be able to get the response back from the IDP.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!