Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试从 WCF 方法实现中获取声明时,我得到了一个类型的对象,System.Security.Principal.WindowsPrincipal它应该是一个类型的对象Microsoft.IdentityModel.Claims.ClaimsPrincipal。有谁知道我在实现这个目标的设置中缺少什么?
System.Security.Principal.WindowsPrincipal
Microsoft.IdentityModel.Claims.ClaimsPrincipal
代码行:IClaimsPrincipal principal = Thread.CurrentPrincipal as IClaimsPrincipal;
提前致谢
FederatedServiceCredentials.ConfigureServiceHost我需要通过在服务工厂编写来配置声明感知服务以使用 WIF
FederatedServiceCredentials.ConfigureServiceHost