Skip to content
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

feat: Ability to fetch JWK fromPyJWKSet based on the token #1012

Open
henryh9n opened this issue Nov 12, 2024 · 2 comments
Open

feat: Ability to fetch JWK fromPyJWKSet based on the token #1012

henryh9n opened this issue Nov 12, 2024 · 2 comments

Comments

@henryh9n
Copy link

PyJWKClient provides a pretty nice interface. It has get_signing_keys, which caches the keys and get_signing_key_from_jwt as a really smooth way to get the key for the given token.

However, if I use PyJWKSet without the client, I'll have to do a lot of this steps manually.

Would be nice to have some similar functionality for PyJWKSet.
One option would be to have get_signing_key_from_jwt method on PyJWKSet.
More advanced option would be to have some kind of PyJWKStore that encapsulates all this methods. It then can be reused by the PyJWKClient and can also load they keys from a JSON or a dict.

@henryh9n
Copy link
Author

@jpadilla Let me know what you think. I can pick this up

@henryh9n
Copy link
Author

One other nice related feature would be to be able to pass a PyJWKSet to jwt.decode() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant