TBD54566975 / web5-rs

Apache License 2.0
9 stars 5 forks source link

Implement JWT as JWE #174

Open KendallWeihe opened 4 months ago

KendallWeihe commented 4 months ago

173 setup our JWT implementation support both JWTs as JWS and JWE, but only implemented the JWT as a JWS. Use this ticket to implement JWT as JWE; see the file crates/jwt/src/jwe.rs.

JWE spec: https://datatracker.ietf.org/doc/html/rfc7516

KendallWeihe commented 4 months ago

As a part of this work, consider consolidating the jws crate's JwsHeader to use a common JoseHeader, because it would appear JWE's and JWS's both use the same set of JOSE Header values

KendallWeihe commented 4 months ago

I have another proposal adjacent to the above comment, rather than the struct named CompactJws we should call it JwsCompactSerialized as to line up with the spec and enable us to implement JwsJsonSerialized which is also in the spec here