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 · 2 comments
Open

Add support for JWS Detached #55

lrosenthol opened this issue Jan 29, 2020 · 2 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

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

2 participants