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

Are JWKS files cached locally? #118

Closed
aesteve opened this issue Aug 13, 2019 · 2 comments
Closed

Are JWKS files cached locally? #118

aesteve opened this issue Aug 13, 2019 · 2 comments

Comments

@aesteve
Copy link

aesteve commented Aug 13, 2019

Hello and thank you for your work.

I've introduced smallrye-jwt into my application and faced an SSL issue when the first request hit the secured endpoint.

So I'm guessing fetching JWKS from a remote location is lazy. Fine.

Is this put in a cache though ? I'm really concerned about this, since it could really slow down the incoming traffic dramatically, or even fail if JWKS endpoint is down for a moment.

I tried to look here but I'm not 100% sure.

Could you please confirm and close this issue/question if you have a few minutes? That'd be really helpful.

Thank you.

@sberyozkin
Copy link
Contributor

Hi @aesteve
The HttpsJwksVerificationKeyResolver uses HttpsJwks so yes the cache is used.
Thanks

@aesteve
Copy link
Author

aesteve commented Aug 14, 2019

Perfect!
Thanks a lot.

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

2 participants