frasertweedale/hs-jose

kty parameter missing in FromJSON/ ToJSON instances

Closed this issue · 3 comments

According to https://www.rfc-editor.org/rfc/rfc7517#section-4.1 this is a mandatory parameter

@marijanp can you please elaborate? You closed the issue already - was it a mistake?

It was a mistake, I overlooked the code which called the KeyMaterial instance. Whoever might be interested here is the instance implementation https://hackage.haskell.org/package/jose-0.10/docs/src/Crypto.JOSE.JWA.JWK.html#line-558

@marijanp thank you for the clarification.