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

kvk*_*vkc 5 spring-security

我试图运行https://github.com/spring-projects/spring-security-saml(主版本)提供的应用程序,并使用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)
Run Code Online (Sandbox Code Playgroud)

And*_*w B 2

我刚刚遇到了这个问题 - 设置中继方信任时指南的最后一步:

http://docs.spring.io/spring-security-saml/docs/current/reference/html/chapter-idp-guide.html

“双击打开提供程序,选择“高级”选项卡并将“安全哈希算法”更改为 SHA-1”