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

JWS JSON Serialization #171

Open
StevenDevooght opened this issue Dec 15, 2021 · 5 comments
Open

JWS JSON Serialization #171

StevenDevooght opened this issue Dec 15, 2021 · 5 comments
Labels

Comments

@StevenDevooght
Copy link

Is JWS JSON serialization as described in RFC 7515 supported by this library?

@dvsekhvalnov
Copy link
Owner

dvsekhvalnov commented Dec 15, 2021

Hi @StevenDevooght ,

nope, library supports only RFC 7516 at the moment. Somewhat similar but for encrypted payloads.

I'd interested to hear your use case though :) Is not that i have immediate plans to add RFC 7515, but can consider it too or you can always do PR.

@StevenDevooght
Copy link
Author

Hi,

We have to integrate with a government web service and they require us to first sign (JWS) & then encrypt (JWE) our payload:

  • JWS: must use JSON serialization mode, not flattened
  • JWE: must use JSON serialization mode, flattened

I think the requirements for JWE are met. We are just missing the JSON serialization part for JWS. If I find the time I'd happy to submit a pull request.

@dvsekhvalnov
Copy link
Owner

yeah, JWE support quite good.

PRs always welcome :) just word of caution, it can take some time to review/merge, especially for bigger ones (JWE took around month for reference). Plus hell a lot of changes in json web key branch at the moment.

@RufusJWB
Copy link

I'd interested to hear your use case though :)

I'm writing a ACME client in .net and ACME uses JWS

@mjhaugsdal
Copy link

@StevenDevooght Some time ago I made a demo client by combining https://github.com/alexzautke/JWS and jose-jwt. The message was accepted by my server (written in java with CXF)

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

No branches or pull requests

4 participants