-
-
Notifications
You must be signed in to change notification settings - Fork 18
Increase max payload length to 128000 bytes #93
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -49,7 +49,7 @@ class Strategy(Enum): | |||||
| #: max header content's size in bytes | ||||||
| max_header_length: int = 512 | ||||||
| #: max payload content's size in bytes | ||||||
| max_payload_length: int = 8000 | ||||||
| max_payload_length: int = 128000 | ||||||
|
||||||
| max_payload_length: int = 128000 | |
| max_payload_length: int = 128000 # exactly 128000 bytes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raising the default
max_payload_lengthto 128000 changes JWS size-validation behavior and breaks existing unit tests that currently expect anExceededSizeErrorfor ~13KB base64url payload segments (e.g.tests/jws/test_compact.py::test_payload_exceeded_size_erroruses a 10,000-byte payload before encoding). Please update the test vectors to exceed the new limit (ideally derived fromregistry.max_payload_lengthto avoid future drift).