gpt4 book ai didi

asp.net-mvc - ID4175 : The issuer of the security token was not recognized by the IssuerNameRegistry

转载 作者:行者123 更新时间:2023-12-01 22:56:36 49 4
gpt4 key购买 nike

我正在尝试在开发环境中与我的 MVC 应用程序一起实现一个简单的 STS 网站。我能够在我的本地机器上正常工作。我将导航到我的 MVC 应用程序,踢出到 STS Web 应用程序,我登录,然后重定向回我的 MVC 应用程序。顺便说一句,这不是使用 AFDS。

当我将其迁移到我的开发环境时,我看到类似的事件,但在登录时出现以下错误。我已经检查了大约 20 次,我在 MVC 应用程序中的指纹与证书完全相同。

(登录工作正常,因为在身份验证成功之前我不会重定向。)

有什么猜测吗?

我收到的错误消息:

ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry. To accept security tokens from this issuer, configure the IssuerNameRegistry to return a valid name for this issuer

来自 STS 网站的 web.config:

<appSettings>
<add key="IssuerName" value="STSTestCert"/>
<add key="SigningCertificateName" value="CN=STSTestCert"/>
<add key="EncryptingCertificateName" value=""/>
</appSettings>

来自 MVC 应用程序的 web.config:

<microsoft.identityModel>
<service>
<audienceUris>
<add value="http://localhost/" />
</audienceUris>
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="true" issuer="http://localhost:57543/mySTS/" realm="http://localhost/" requireHttps="false" />
<cookieHandler requireSsl="false" />
</federatedAuthentication>
<applicationService>
<claimTypeRequired>
<!--Following are the claims offered by STS 'http://localhost:57543/mySTS/'. Add or uncomment claims that you require by your application and then update the federation metadata of this application.-->
<claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" optional="true" />
<claimType type="http://schemas.microsoft.com/ws/2008/06/identity/claims/role" optional="true" />
</claimTypeRequired>
</applicationService>
<issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<trustedIssuers>
<add thumbprint="‎11111" name="http://localhost:57543/mySTS/" />
</trustedIssuers>
</issuerNameRegistry>
</service>
</microsoft.identityModel>

最佳答案

复制指纹会添加隐藏的 unicode 字符。尝试输入它。

关于asp.net-mvc - ID4175 : The issuer of the security token was not recognized by the IssuerNameRegistry,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20339091/

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