Closed avkhozov closed 4 years ago
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?
@karel-m I have created PR with test and possible fix.
Released as Crypt-JWT-0.025. Thank you for your time.
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), butCrypt::JWT
returnunsupported 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?