.NET Claim in three namespaces

前端 未结 3 1827
野性不改
野性不改 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条回答
  •  不知归路
    2021-02-12 15:34

    System.IdentityModel.Claims is part of WCF/.Net 3.0

    Microsoft.IdentityModel.Claims extends System.IdentityModel.Claims and is the Windows Identity Foundation class.

    System.Security.Claims is the .Net 4.5 version.

    So if you're writing using WIF, you should use Microsoft.IdentityModel.Claims.

提交回复
热议问题