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

Support updating JWKSet #1579

Closed
jkarni opened this issue Apr 14, 2022 · 0 comments · Fixed by #1580
Closed

Support updating JWKSet #1579

jkarni opened this issue Apr 14, 2022 · 0 comments · Fixed by #1580

Comments

@jkarni
Copy link
Member

jkarni commented Apr 14, 2022

Originally reported by @axman6 in the old servant-auth repo:

We have a service which periodically needs to update the set of known keys which will be used to sign requests. The simplest way I can see to allow this is to have

validationKeys :: JWKSet

become

validationKeys :: Either (IO JWKSet) JWKSet

or something isomorphic to this. For our particular use case this happens frequently enough that it would be better to not have to shoot the service in the head to periodically fetch the latest keys.

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

Successfully merging a pull request may close this issue.

1 participant