saml-2.0 - Azure AD 的 LogoutResponse 上的证书问题

标签 saml-2.0 itfoxtec-identity-saml2

作为服务提供商,我们使用“ITfoxtec Identity Saml2”包来处理 SAML2.0。我们有两个使用 AzureAD 作为 IDP 的集成。两者在处理来自 Azure 的 LogoutResponse 时都存在问题。发生此异常:

System.IdentityModel.Tokens.SecurityTokenValidationException: The X.509 certificate CN=Microsoft Azure Federated SSO Certificate chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.

避免此问题的唯一方法是设置

Saml2Configuration.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None;

但据我了解,这将停用所有证书验证,在处理 AuthnRequest 时也是如此。

知道如何规避这个问题吗?

最佳答案

停用证书更改验证可能可以。验证仅检查证书是否具有依赖方已知的链。这意味着依赖方服务/服务器必须知道根证书。

关于saml-2.0 - Azure AD 的 LogoutResponse 上的证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70304671/

相关文章:

post - 通过 Saml2PostBinding 启动 SingleSignOn

asp.net - 如何使用 http-redirect 实现单点注销

itfoxtec-identity-saml2 - 在 NemLog-in 中为一家私营公司创建 IT 系统

java - SAML2 - 响应没有任何可以通过主题验证的有效断言

azure - OIOSAML 可以在 Azure 网站中作为 SAML SP 运行吗?

.net - 使用 .NET/WIF/WCF 查询 WS-Trust 1.4 STS

azure - 我的 Azure AD - SAML 2.0 配置有问题

java - 单点注销配置文件

saml - ITfoxtec SAML 2.0 session 超时

xml - 如何验证 HTTP 重定向绑定(bind)的 SAML 签名