I am trying to set up a the JWT handler package that can be found on this link: https://msdn.microsoft.com/en-us/library/dn205065(v=vs.110).aspx.
Using several examples online I came accross this piece of code to try and validate a JWT message:
var validationParameters = new TokenValidationParameters()
{
AllowedAudience = "http://www.example.com",
SigningToken = new UserNameSecurityToken(username, password),
ValidIssuer = "self"
};
However, I get an error (the exact error is "type or namespace name is not found...) that UserNameSecurityToken is not present within the System.IdentityModel.Tokens namespace, whilst according the msdn entry about that namespace says it should contain that class. https://msdn.microsoft.com/en-us/library/system.identitymodel.tokens(v=vs.100).aspx
Have I overwritten the namespace by installing the JWT package? Or am I misunderstanding what namespaces are?