1

我想使用 Kentor.AuthServices 在我的 Web 应用程序中使用 Okta 进行身份验证。我关注了文章“如何将 KentorIT AuthServices 与 Okta 一起使用”

因为应用程序会抛出错误:

签名算法http://www.w3.org/2001/04/xmldsig-more#rsa-sha256弱于接受的最小值http://www.w3.org/2000/09/xmldsig#rsa-sha1

这就是我在global.asax以下行中添加的原因:

protected void Application_Start()
{
    Kentor.AuthServices.Configuration.Options.GlobalEnableSha256XmlSignatures();

此行导致以下错误:

无法加载文件或程序集“Kentor.AuthServices,Version=0.21.1.0,Culture=neutral,PublicKeyToken=null”或其依赖项之一。需要强命名程序集。(来自 HRESULT 的异常:0x80131044)

如何解决这个问题?

4

0 回答 0