Keats / jsonwebtoken

JWT lib in rust
MIT License
1.69k stars 269 forks source link

Decoding JWKs #229

Closed mladedav closed 2 years ago

mladedav commented 2 years ago

226 asked about pulling and parsing the keys from well known URIs. I get that people should download the keys themselves, but would it be possible for the library to at least parse them, or provide JWK types to let users parse it into those which could be then used to create DecodingKey?

I would be happy to help if this was something that could be added to the library.

Keats commented 2 years ago

It's already the case in v8 beta, have a look at that example: https://github.com/Keats/jsonwebtoken/blob/next/examples/auth0.rs You can try it from crates.io as well

mladedav commented 2 years ago

Thank you very much.

mladedav commented 2 years ago

Since I found in the v8 PR that you're testing functionality and gathering feedback before release I just want to report that all seems to work well here. I'm using Auth0 and there seem to be no issues.

Keats commented 2 years ago

perfect, that's good to hear