IdentityServer / IdentityServer2

[deprecated] Thinktecture IdentityServer is a light-weight security token service built with .NET 4.5, MVC 4, Web API and WCF.
Other
410 stars 291 forks source link

Updating System.IdentityModel.Tokens.Jwt to version 4.0.0 causes error. #807

Closed 82edwards closed 9 years ago

82edwards commented 9 years ago

I have the identity server set up and running on my local machine, as well as a .net mvc project connected to it. Previously I was using System.IdentityModel.Tokens.Jwt version 3.0.2 as my security token handler. After upgrading to version 4.0.0, I get an error after login during the token validation step.

IDX11008: This method is not supported to validate a 'jwt' use the method: ValidateToken(String, TokenValidationParameters, out SecurityToken).

leastprivilege commented 9 years ago

Yes - 4.0 has a breaking change - any reason you need 4.0 ?

82edwards commented 9 years ago

Not urgently. Nuget automatically delivers the 4.0.0 version, so for new projects, it will appear that they do not work. Is this something that you are fixing in the v3 version that is in beta? Should we upgrade to that for development?

On Wed, Oct 8, 2014 at 12:03 PM, Dominick Baier notifications@github.com wrote:

Yes - 4.0 has a breaking change - any reason you need 4.0 ?

— Reply to this email directly or view it on GitHub https://github.com/thinktecture/Thinktecture.IdentityServer.v2/issues/807#issuecomment-58382056 .

leastprivilege commented 9 years ago

Nuget will only go to 4.0 when you upgrade packages - not during restore. A major version change means breaking change.

IdSrv3 uses the latest JWT yes.