Hello,
When SP receive saml response from IDP, spring saml security code throws following exception
org.opensaml.common.SAMLException: System cannot honor OneTimeUse condition of the SAML Assertion for WebSSO
at org.springframework.security.saml.websso.WebSSOPro fileConsumerImpl.verifyAssertionConditions(WebSSOP rofileConsumerImpl.java:478)
at org.springframework.security.saml.websso.WebSSOPro fileConsumerImpl.verifyAssertion(WebSSOProfileCons umerImpl.java:298)
at org.springframework.security.saml.websso.WebSSOPro fileConsumerImpl.processAuthenticationResponse(Web SSOProfileConsumerImpl.java:202)
And I checked the SAML response and I do see
<saml2:OneTimeUse/>
If I comment out the code then it works fine.
For the same reason, <saml2:AudienceRestriction> also failing
Any idea why spring saml code throws SAML exception on above both scenarios before creating SAMLCredetials object ?
Any help would be appreciated.
Thanks,
Parthi


Reply With Quote
