Skip to content
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

Empty payload in JWS JSON token #19

Closed
avkhozov opened this issue Sep 28, 2019 · 3 comments
Closed

Empty payload in JWS JSON token #19

avkhozov opened this issue Sep 28, 2019 · 3 comments

Comments

@avkhozov
Copy link
Contributor

There is cases when payload is empty string in JWS JSON token (for example in ACME protocol: https://tools.ietf.org/html/rfc8555#section-7.4.2), but Crypt::JWT return unsupported JWS/JWT JSON Serialization for such tokes.

Can we weaken a test for payload field using define $hash->{payload} in https://github.com/DCIT/perl-Crypt-JWT/blob/master/lib/Crypt/JWT.pm#L707?

@karel-m
Copy link
Contributor

karel-m commented Sep 28, 2019

You are right. Do you think that you will find some spare time to create a pull request with a failing test for this case?

@avkhozov
Copy link
Contributor Author

@karel-m I have created PR with test and possible fix.

@karel-m
Copy link
Contributor

karel-m commented Sep 29, 2019

Released as Crypt-JWT-0.025. Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants