Claims系列 - ID4036错误(The key needed to decrypt the encrypted security token could not be resolved from
错误现象
错误原因
a) 在SecurityTokenService.GetScope()方法中,设置了Scope.EncryptingCredentials属性为某个X509证书(公钥);
b) Relying Party应用程序中没有设置对应的证书(包含私钥)。
原因分析
从出错页面的规模信息可知, ID4036是由ID1044错误引发的。