Keats / jsonwebtoken

JWT lib in rust
MIT License
1.61k stars 253 forks source link

Method to get JWK from EncodingKey #360

Closed andrewbaxter closed 5 months ago

andrewbaxter commented 6 months ago

Per #357

I excluded Ed25519 for now, but the rest works as expected I believe. I'm going to test it with the code I wanted to use it in originally for now.

andrewbaxter commented 5 months ago

My (limited) real world testing worked.

Obviously splitting the bytes is a hack, but I wasn't able to find the ring internal methods that extract that data. I may continue to look, but I think this is relatively safe.

andrewbaxter commented 5 months ago

https://github.com/andrewbaxter/fork-jsonwebtoken/pull/2 targetted at the ACME/JWS branch