- changed status to wontfix
Compression for Plain JWT
Issue #231
wontfix
I see that DEFLATE compression if supported only for encrypted tokens, is there any reason to not include it in plain tokens?
Comments (1)
-
- Log in to comment
I don't know the history / considerations for that when the spec was coined. The JOSE spec suite has DEFLATE only for JWE objects, and not for JWS and plain. Enabling DEFLATE to them can cause interop problems for developers who are not aware that it's actually only specced for JWE. So would rather not implement that.
If you wish to have compression, you can do that externally, and use PlainObject to ship the data: http://static.javadoc.io/com.nimbusds/nimbus-jose-jwt/4.41/com/nimbusds/jose/PlainObject.html