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

Add support for JWS Detached #55

Open
lrosenthol opened this issue Jan 29, 2020 · 3 comments
Open

Add support for JWS Detached #55

lrosenthol opened this issue Jan 29, 2020 · 3 comments

Comments

@lrosenthol
Copy link

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.

@Thalhammer
Copy link
Owner

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.

@lrosenthol
Copy link
Author

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

@CristiF86
Copy link

Hello, I have also a question related to the library support for Flattened JWS JSON serialization format. In order to use the jwt API as is shown in rsa-verify.cpp example for signature validation, do I need first to parse the JSON and build the token (protected||'.'||payload||'.'||signature), or there is some API which is supporting directly the JWS JSON format? Thank you!

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

No branches or pull requests

3 participants