Spring security org.opensaml.common.SAMLException:响应的状态代码无效urn:oasis:names:tc:SAML:2.0:status:Responder,状态消息为null

Spring security org.opensaml.common.SAMLException:响应的状态代码无效urn:oasis:names:tc:SAML:2.0:status:Responder,状态消息为null,spring-security,Spring Security,我正在尝试运行版本)中提供的应用程序,并将adfs用作idp,并遵循文档中给出的所有步骤。我得到下面的错误 org.opensaml.saml2.metadata.impl.AssertionConsumerServiceImpl@7a033ee2 for request URL https://localhost:8443/spring-security-saml2-sample3/saml/SSO based on location attribute in metadata - Authe

我正在尝试运行版本)中提供的应用程序,并将adfs用作idp,并遵循文档中给出的所有步骤。我得到下面的错误

org.opensaml.saml2.metadata.impl.AssertionConsumerServiceImpl@7a033ee2 for request URL https://localhost:8443/spring-security-saml2-sample3/saml/SSO based on location attribute in metadata
- Authentication attempt using org.springframework.security.saml.SAMLAuthenticationProvider
- Error validating SAML message
org.opensaml.common.SAMLException: Response has invalid status code urn:oasis:names:tc:SAML:2.0:status:Responder, status message is null
    at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.processAuthenticationResponse(WebSSOProfileConsumerImpl.java:113)
    at org.springframework.security.saml.SAMLAuthenticationProvider.authenticate(SAMLAuthenticationProvider.java:87)
    at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)

我刚刚遇到了这个问题-在建立中继方信托时,这里是指南的最后一步:


双击提供程序打开它,选择tab Advanced并将“安全哈希算法”更改为SHA-1“

下面是控制台日志-构造Apache XMLSignature对象-setElement(“ds:Signature”)-setElement(“ds:SignedInfo”)-setElement(“ds:SignatureMethod”,“”)-创建URI”类“class org.apache.xml.security.algorithms.implementations.SignatureBaseSA$SignatureRSASHA256”-请求URI-使用SHA256withRSA创建SignaturesA-setElement(“KeyInfo”,“”)-添加规范化和签名算法,以及签名的HMAC输出长度-