.NET Claim in three namespaces

前端 未结 3 1833
野性不改
野性不改 2021-02-12 15:06

Now this is odd. After completing some research on claims based solutions in .NET, found that different authors refer to different classes in .NET namespace when actually speaki

3条回答
  •  Happy的楠姐
    2021-02-12 15:48

    Microsoft's answer appears to be: "WIF classes are now spread across various assemblies, the main ones being System.Security.Claims, System.IdentityModel, and System.IdentityModel.Services. System.Security.Claims contains the new ClaimsPrincipal and ClaimsIdentity classes (see below). All principals in .NET now derive from ClaimsPrincipal. The classes from Microsoft.IdentityModel in WIF 1.0 have been spread mainly across System.IdentityModel (pipeline, WCF integration) and System.IdentityModel.Services (support for WS-Federation, session management). Those changes are reflected on the configuration sections as well."

提交回复
热议问题