Skip to content

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

@michaelrsweet

Description

@michaelrsweet

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions