-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 5: decryption of compressed token throws exception but works in 4.1 #244
Comments
Hi @Mr-Pearce , yeah, it is in release notes actually, please see here: https://github.com/dvsekhvalnov/jose-jwt#customizing-compression You'll have to provide higher limit for decompression according to your case. Would also recommend to consider detached payload standard if possible in your scenarios: https://github.com/dvsekhvalnov/jose-jwt?tab=readme-ov-file#unencoded-and-detached-content-aka-rfc-7797 and may be transfer bigger payloads via different channel directly. May be more scalable solution, but definitely depends. |
@Mr-Pearce are you good? Can close an issue? |
Hey when i use the following code in Version 5 i get the message below.
With Version 4.1 it works just fine.
When i remove the
JweCompression.DEF
from Encryption it also works with 5 but the JWE Tokens i get are all compressed.Message:
Jose.JoseException : Unable to deflate compressed payload, most likely exceeded decompression buffer size.
----> System.NotSupportedException : Memory stream is not expandable.
file-example_PDF_500_kB.pdf
The text was updated successfully, but these errors were encountered: