由于某些原因,我无法设置EntityDescriptor,它返回null。
EntityDescriptor metadata = null;
metadata = (EntityDescriptor)context.Cache['https://domain.info/blah'];
实例化SAML2.0断言消费者工厂需要此EntityDescriptor。任何洞察力都将不胜感激。
发布于 2016-03-25 04:36:33
我无法获取当前应用程序域的Cache对象,因为它找不到它并返回null。这是因为Uri与Web.Config中的元数据项键值的大小写不匹配。i.g.<add key="https://Domain.Info/Blah" metapath="c:\saml\meta\blah_samlMeta.xml" metauri="https://domain.info/blah" />
将键值更改为小写对我有效。
https://stackoverflow.com/questions/36188511
复制相似问题