Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Support RFC 7638 canonical kid for JWK #268

Closed
zamicol opened this issue Nov 7, 2019 · 1 comment
Closed

Support RFC 7638 canonical kid for JWK #268

zamicol opened this issue Nov 7, 2019 · 1 comment

Comments

@zamicol
Copy link
Contributor

zamicol commented Nov 7, 2019

The jose-util complains that, "JWK Thumbprint (RFC 7638) is not used for key id because of lack of canonical representation" and instead has an external dependency to github.com/google/uuid for the kid.

// JWK Thumbprint (RFC 7638) is not used for key id because of lack of

Unless I'm taking crazy pills, RFC 7638 is exactly that, the prescription for a reproducible canonical kid. It even begins by saying, "[This specification defines the] method of creating a canonical form..."

And while I'm asking questions, there doesn't appear to be a clean way to produce a JWK outside of the jose-util, which doesn't expose the functions and is limited to writing JWK's to a file. Is that suppose to be the role of "func NewSigner"? Would there be any interest/need for a 'func NewJWK' ? Either way, I would love to see an example.

@zamicol
Copy link
Contributor Author

zamicol commented Nov 11, 2019

See Pull Request #269

@cpu cpu closed this as completed Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants