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:
- Created 7 years ago
- Reactions:3
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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)
It will be hard to confirm, as ASOS no longer uses this method… 😅