question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaking change in JwtSecurityTokenHandler between 5.0.0 and 5.1.0

See original GitHub issue

@polita once said “unfortunately, we can’t make any breaking changes in minor or patch versions”… obviously you forgot your own rule when adding JWE support, because CreateJwtSecurityToken’s signature changed between 5.0.0 and 5.1.0 (it now accepts an EncryptingCredentials instance)…

MissingMethodException: Method not found: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.CreateJwtSecurityToken(System.String, System.String, System.Security.Claims.ClaimsIdentity, System.Nullable1<System.DateTime>, System.Nullable1<System.DateTime>, System.Nullable`1<System.DateTime>, Microsoft.IdentityModel.Tokens.SigningCredentials)'.

Reported by @chris5287 on Gitter.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinchaletcommented, Nov 30, 2016

@BrainCrumbz FYI, I pushed new aspnet-contrib bits to NuGet.org a few minutes ago. Since ASOS beta7 doesn’t use CreateJwtSecurityToken, it should work with 1.1.0. Don’t hesitate to give it a try when you have a minute 😄

(I’m preparing a blog post that details the most important changes between beta6 and beta7)

0reactions
kevinchaletcommented, Dec 2, 2016

@PinpointTownes @BrainCrumbz please reopen if the nightly fix fails.

It will be hard to confirm, as ASOS no longer uses this method… 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - TokenValidationParameters no longer working after ...
As the other answers mentioned, there was a breaking change in System.IdentityModel.Tokens.Jwt from version 4.0 to 5.0.
Read more >
Breaking changes in .NET 5
NET 5, the breaking changes listed here might affect you. Changes are grouped by technology area, such as ASP.NET Core or cryptography.
Read more >
System.IdentityModel.Tokens.Jwt 6.32.1
Includes types that provide support for creating, serializing and validating JSON Web Tokens. Product, Versions Compatible and additional computed target ...
Read more >
Breaking changes in EF Core 5.0
Complete list of breaking changes introduced in Entity Framework Core 5.0. ... to break existing applications updating to EF Core 5.0.0.
Read more >
C# (CSharp) JwtSecurityTokenHandler.ValidateToken ...
Jwt library for validating JSON Web Tokens (JWTs) in C#. It is used to verify that a token comes from a trusted source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found