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 application/jose+json and header value support #52

Closed
4 tasks done
michaelrsweet opened this issue Apr 11, 2023 · 1 comment
Closed
4 tasks done

Add application/jose+json and header value support #52

michaelrsweet opened this issue Apr 11, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request priority-high
Milestone

Comments

@michaelrsweet
Copy link
Member

michaelrsweet commented Apr 11, 2023

ACME and other protocols use the JWS JSON Serialization format (application/jose+json) in addition to plain JSON. In addition, some values (such as the "kid" parameter) appear in the protected header that cupsJWTSign and cupsJWTHasValidSignature currently don't support.

Tasks:

  • Add "kid" key/value pair when signing with cupsJWTSign
  • Lookup "kid" value when verifying with cupsJWTHasValidSignature
  • Add cupsJWTSetHeaderNumber, cupsJWTSetHeaderString, and cupsJWTSetHeaderValue to set values in the JWS Protected Header (no support for unprotected values)
  • Update cupsJWTExportString and cupsJWTImportString to support the JWS JSON Serialization
@michaelrsweet michaelrsweet added this to the v3.0 milestone Apr 11, 2023
@michaelrsweet michaelrsweet self-assigned this Apr 11, 2023
@michaelrsweet michaelrsweet added enhancement New feature or request priority-high labels Apr 11, 2023
@michaelrsweet
Copy link
Member Author

[master 8ff3208] Support exporting to JSON serialization (Issue #52)

[master 1f7b9b0] Select/match keys (Issue #52)

[master 03e5a9c] Import JSON serialization formats (Issue #52)

[master 3b0471d] Initial work on adding JSON serialization support (Issue #52)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-high
Projects
None yet
Development

No branches or pull requests

1 participant