-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Milestone
Description
Too many submitted issues are submitted like "My key on service A works, but it's not working with JJWT". This is basically because:
- The user uses a String key that is not Base64-encoded as the JJWT
signWithJavaDoc clearly documents, or: - The key is rarely of the mandatory length required by the JWT specification.
This issue represents the work to throw an exception if invalid keys are used to sign or verify a JWT, namely when using the setSigningKey or signWith methods.
The JWT RFC REQUIRES that key lengths meet guaranteed minimums depending on the algorithm strength chosen, and too many people don't do this. Because JJWT is a spec-compliant library, it must enforce Specification-mandated behavior.
See https://stackoverflow.com/a/40274325/407170 for more information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels