.NET Claim in three namespaces

前端 未结 3 891
北海茫月
北海茫月 2021-02-12 15:17

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:43

    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.

提交回复
热议问题