How jwk.Cache refresh works? #1154
Replies: 1 comment 1 reply
-
I haven't checked recently, but I think that was the intended behavior. Please file an issue with reproducible test case it it isn't working. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am trying to understand how
jwk.WithMinRefreshInterval(15*time.Minute)
and others Refresh things works for JWKs. I added in my code this function that returns a jwk.Set and when I parse the keys I usejwt.WithKeySet
, as was mention here .I set the refresh intervals to 10s and I was expected to see requests made to the JKWs server almost every 10s to 20s approximately, but it seems that no request is made.
Do I need to call Refresh by myself or something else should be added?
Please let me know if you need more informations.
Thank you! :D
L.E: I forgot to mention that I initialize the cache at startup.
Beta Was this translation helpful? Give feedback.
All reactions