SAMLException: InResponseToField of the Response doesn't correspond to sent message

前端 未结 2 1307
花落未央
花落未央 2021-01-18 01:51

We are working on an application, which is protected with spring security saml.

Authentication works fine, but there is one problem with the following workflow in pr

2条回答
  •  孤城傲影
    2021-01-18 02:09

    We have solved our issue with following changes to the spring saml configuration:

    1. In bean with id successRedirectHandler (org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler) we set the defaultTargetUrl to the init-Action of our application (including all request parameters). This url will be automatically used in case of IdP initiated SSO.
    2. In Bean with id contextProvider (org.springframework.security.saml.context.SAMLContextProviderLB) we set storageFactory to org.springframework.security.saml.storage.EmptyStorageFactory. This disables the check of the InResponseToField.

提交回复
热议问题