-
Notifications
You must be signed in to change notification settings - Fork 132
JWK sets #809
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
base: main
Are you sure you want to change the base?
JWK sets #809
Conversation
| #[derive(Default, Clone)] | ||
| pub struct KeySet { | ||
| /// Vec of an arbitrary number of Json Web Keys | ||
| pub keys: Vec<Arc<Key>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HashMap based on kid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about that, I'd keep it this way especially since the kid in a Key is optional and doesn't necessarily have to be unique. I don't think this matters for performance since we're probably talking about < 10 keys.
Addresses #734
Still a draft since I wanna do some more testing myself, add unit tests and also write some documentation on it.
The config looks something like this: