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

request: smallrye-jwt retries fetching keys if initial request fails #779

Open
The-Funk opened this issue Mar 27, 2024 · 2 comments
Open

Comments

@The-Funk
Copy link

Describe the bug
smallrye-jwt seems to fetch keys from the OAuth provider's key endpoint only on first request, however if this original fetch fails, the library never retries, and all subsequent auth requests fail until the application is restarted.

Expected behavior
If there's a network blip on the first request and the application is unable to fetch proper keys, the library should retry fetching the keys on each successive auth request, or on a scheduled retry with some backoff, or on 1 in X number of subsequent requests (in case there are many requests).

Actual behavior
See bug description.

How to Reproduce?
Start an application with smallrye-jwt and with your OAuth provider firewalled and inaccessible or unrouteable. Once the startup process has fully completed, try authenticating (the request will fail). Re-establish connectivity between the application and the OAuth provider. Attempt authentication again. Tthe request will still fail despite the OAuth provider being available once again.

@benrose258
Copy link

I've noticed this too

@tsbudd
Copy link

tsbudd commented May 13, 2024

I have noticed bugs concerning this issue.

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

3 participants