jwt-cpp icon indicating copy to clipboard operation
jwt-cpp copied to clipboard

Add support for JWS Detached

Open lrosenthol opened this issue 5 years ago • 3 comments

I have a use case where it I need to produce a JWT where the payload data shouldn't be included in the token itself, as described here in the spec.

lrosenthol avatar Jan 29 '20 16:01 lrosenthol

Note that this method needs no support from JWS libraries, as applications can use this method by modifying the inputs and outputs of standard JWS libraries.

If you want to do this you simply need to split the resulting token on the dot and remove the middle part. Before verification you insert it back.

Thalhammer avatar Mar 11 '20 12:03 Thalhammer

True, but I ended up doing it in a more efficient (at least to me) way. Changes are in my fork at https://github.com/lrosenthol/jws-jwt-cpp

lrosenthol avatar Mar 11 '20 13:03 lrosenthol