根据此链接https://blogs.technet.microsoft.com/askpfeplat/2015/03/01/adfs-deep-dive-onboarding-applications/
我在依赖方设置了token加密证书,并将公钥导出给ADFS提供者
我需要在我的 asp.net web.config 中进行哪些更改才能解密这些声明。我目前使用 System.Security.Claims.ClaimsPrincipal
类来取回声明
最佳答案
让它现在对任何人都有效。需要在 web.config 中更改以下内容。将 XXXX 替换为您的证书指纹
<system.identityModel.services>
<federationConfiguration>
<serviceCertificate>
<certificateReference x509FindType="FindByThumbprint" findValue="XXXX" storeLocation="LocalMachine" storeName="My" />
</serviceCertificate>
<cookieHandler requireSsl="false" />
<wsFederation ... />
</federationConfiguration>
</system.identityModel.services>
关于c# - ASP.Net ADFS Token 加密证书私钥,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36082444/