Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A member of the System.Security.Claims namespace is not available?

I am learning the new Claims-based Authentication methods in .NET 4.5, and am using a Console app to do so. According to MSDN here, ClaimsAuthenticationManager is a member of System.Security.Claims namespace. As you can see here, I am not getting this option. I have made sure the project is using .NET 4.5. I am missing something simple here... anyone have any suggestions?

System.Security.Claims Intellisense options

like image 287
Josh McKearin Avatar asked Jul 01 '13 16:07

Josh McKearin


1 Answers

You need to add a reference to System.IdentityModel.dll

You can see this in the documentation for ClaimsAuthenticationManager:

Namespace: System.Security.Claims

Assembly: System.IdentityModel (in System.IdentityModel.dll)

like image 69
Reed Copsey Avatar answered Sep 28 '22 18:09

Reed Copsey