is weaker than the minimum accepted <...>"错误-6ren"> is weaker than the minimum accepted <...>"错误-我正在尝试使用 Kentor 库的 SampleOwinApplication 进行 Saml 2 身份验证。我正在尝试通过转到 http://localhost:57294/AuthServices-6ren">
gpt4 book ai didi

algorithm - 使用 Kentor Saml2 库时出现 "The signing algorithm <...> is weaker than the minimum accepted <...>"错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:47:39 26 4
gpt4 key购买 nike

我正在尝试使用 Kentor 库的 SampleOwinApplication 进行 Saml 2 身份验证。我正在尝试通过转到 http://localhost:57294/AuthServices/SignIn?idp=http%3a%2f%2fstubidp.kentor.se%2fMetadata 登录.当我尝试登录时,出现一个奇怪的错误:

签名算法 http://www.w3.org/2001/04/xmldsig-more#rsa-sha256低于可接受的最低限度http://www.w3.org/2000/09/xmldsig#rsa-sha1 .

这个错误似乎是最近版本(0.20.0)才出现的,因为我之前试过那个库,但没有看到那个错误。是错误还是配置中缺少某些内容?

最佳答案

如本期 https://github.com/KentorIT/authservices/issues/672 所述

错误信息不正确。它应该说的是

SHA256 signatures require the algorithm to be registered at the process level. Upgrade to .Net 4.6.2 or call Kentor.AuthServices.Configuration.Options.GlobalEnableSha256XmlSignatures() on startup to register."

显然,您收到了一条使用 SHA256 签名的 SAML 消息,但您没有运行 .Net 4.6.2,或者您没有通过上述方法启用它。

关于algorithm - 使用 Kentor Saml2 库时出现 "The signing algorithm <...> is weaker than the minimum accepted <...>"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42997997/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com