Jac*_*gen 3 java spring spring-security saml-2.0
我正在寻找一种方法来增加我的saml消息的到期时间.我使用Spring Security和SAML 1.0.0-RC2.
此时,如果服务器**时间过于不同,例如5分钟,则出现以下错误:
HTTP Status 401 - Authentication Failed:Error validating SAML message: SAML response is not valid; nested exception is org.opensaml.common.SAMLException: SAML response is not valid
Run Code Online (Sandbox Code Playgroud)
我想将到期时间设置为10分钟,以防止出现这些错误.我一直在查看文档,但我不明白如何更改到期时间.如果我查看配置身份验证对象部分,可以更改到期时间,但我无法理解这个想法.
有人可以帮帮我吗?
**我的服务器(SP)和客户服务器(IDP,很可能是安装了ADFS的服务器).
Jac*_*gen 10
在Stefan的anwser之后,我知道在哪里看!实际上文档确实描述了这个东西,我只是没有拿起它:10.3有效期间隔.欢呼Stefan指出responseSkew属性!
只需将属性responseSkew添加到WebSSOProfileConsumerImpl和SingleLogoutProfileImpl bean:
<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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7655 次 |
| 最近记录: |