-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add backgroundRefresh for initially failing JWKs from keyfunc.GetMultiple #90
Comments
Thank you for opening this issue and the kind words, @ErenDursun. I think the use case may be more practical than I initially thought. You are correct, this could be solved in a simpler way using The new field on Please feel free to continue commenting on the issue or reopen it if the newly added feature does not meet your expectations. |
Hi, first of all: thanks for this great repository!
When using keyfunc.GetMultiple to retrieve JWKs from multiple URLs with a configuration to refresh those keys, then during runtime some of the URLs might have a downtime and when they are up again all will self-heal after a background refresh - and that's neat!
But what if one of many URLs isn't accesible at startup, due to let's say maintenance? Can we have the keyfunc.GetMultiple function load from all working URLs and have the rest loaded later via background refresh?
So far I couldn't find a way to achieve this from outside the library without reimplementing large parts of it. But adding a new parameter to the keyfunc.Options could solve this in a much simpler way.
Thanks for looking into it :)
The text was updated successfully, but these errors were encountered: