nov / json-jwt

JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby
MIT License
299 stars 80 forks source link

Support for Unencoded Payload Option (RFC 7797) #77

Closed idigber closed 5 years ago

idigber commented 5 years ago

Is there support for JWS Unencoded Payload Option (RFC 7797) for signature calculation using this library? More details can be found here: https://tools.ietf.org/html/rfc7797

nov commented 5 years ago

use JSON::JWT#as_json instead of JSON::JWT#to_s

DeanDeBlock commented 5 years ago

to_s orto_json is for a JWT instance, but is there a possibility to verify a separate payload with an input like this (no encoded payload) for example: YyEb2883..Jhdr334 ?

nov commented 5 years ago

Sorry, I don't get what you mean.

nov commented 5 years ago

Ah, I got it. So, the correct answer is this gem doesn't support RFC 7797.