Josh McKearin
Josh McKearin

Reputation: 742

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

Upvotes: 7

Views: 5233

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564771

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)

Upvotes: 14

Related Questions