Comments (2)
Little correction: "instead of the signature algo" should be "instead of the key size"
Example: this is the hex dump of a signature made with ES256 but with a P384 key (and the accidentally starts with 0x30):
3065023030749319BAC407F23AF6AE58744B3856424A145DB96008E9B75DA96FCF93E570583F38CE860F80A6B238C2BD22289B8D023100E2CF7A8A336412D50511D583276392E71FF91B7BB0D1B3BC03A90E2C04DE9772BB00195A13C4E63339921D34C242E7FD
from jjwt.
Hi @StefHoeben!
0.9.x is 6 years old and no longer supported.
If you're able, please upgrade to the latest stable JJWT release (0.12.5 at the time of writing). 0.12.x is a bigger API leap than most releases (please read the Changelog!), and this may require a number of changes to your application code, but the upgrade may not be difficult depending on how much JJWT customization you've made.
If you're unable to do this now, 0.11.5
has a change that only performs the DER check if a system property has been set instructing JJWT to assume DER. Otherwise it assumes the JWT RFC-standard IEEE P1363 format as you'd expect.
I'm closing this because the fix is already in 0.11.5 and 0.12.x, but feel free to comment below if those don't work. Thanks!
from jjwt.
Related Issues (20)
- Disable Jackson ObjectMapper FAIL_ON_UNKNOWN_PROPERTIES Deserialization Feature HOT 1
- Unable to extract claims when cty specified in JWS header (>0.12.0) HOT 19
- Question: How far is version 1.0 (due to breaking changes in 0.12)?
- NIST Elliptic Curve JWK field element octet string padding HOT 1
- Allow parsing signed JWTs without the key HOT 1
- Impossible to build a JWK with `alg: HS512` and a `k` that is larger than 64 bytes HOT 2
- Make JacksonDeserializer constructor public
- Unable to access jcaName from Jwts.SIG HOT 2
- Jwts.builder - audience cannot be add without calling add() HOT 5
- Consider a convenience method to obtain a `Jwk` from a `JwkSet` by Key ID HOT 4
- Deprecation of support for unsecured JWT token parsing with algo != 'none' HOT 3
- NoSuchMethodError when using libraries built against older jjwt version HOT 2
- CVE reported against 0.11.5 HOT 5
- CVE-2024-31033 (v0.12.5) HOT 2
- java.lang.IllegalArgumentException: Invalid Map 'iv' (Initialization Vector) value: 1230868678. Values must be either String or [B instances. Value type found: java.math.BigInteger. HOT 4
- JWE arbitrary content compression/decompression error
- X5C header does not accept a chain of certificates longer than 1 HOT 6
- Algorithm Request/Result Builders
- AUD as only array breaks legacy/existing implementations HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jjwt.