I was reading this answer and trying to copy the method used there, but VS2010 and the compiler refuse to acknowledge that SecurityAlgorithms exists as part of Microsoft.IdentityModel.Tokens, even though MSDN says it does. I am getting the error: “The type or namespace name ‘SecurityAlgorithms’ does not exist in the namespace ‘Microsoft.IdentityModel.Tokens’ (are you missing an assembly reference?)”
I installed WIF from here (Windows6.1-KB974405-x64.msu) and the WIF SDK from here (WindowsIdentityFoundation-SDK-4.0.msi). Then I added
a reference to Microsoft.IdentityModel to my project.
Is there something I have missed?
My mistake, it is actually in System.IdentityModel.Tokens, not Microsoft.IdentityModel.Tokens.