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

Add jwksRetainOnErrorDuration #840

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Add jwksRetainOnErrorDuration #840

merged 1 commit into from
Nov 15, 2024

Conversation

luneo7
Copy link
Contributor

@luneo7 luneo7 commented Nov 15, 2024

Adds jwksRetainOnErrorDuration so we can also support Jose4J setRetainCacheOnErrorDuration and keep the current for a time period, before trying to fetch the cache again, if some error happens during cache refresh.

Handles #826

@luneo7
Copy link
Contributor Author

luneo7 commented Nov 15, 2024

/cc @sberyozkin

@sberyozkin
Copy link
Contributor

Hi @luneo7, thanks, believe it or not, I started typing something as well, trying to fix it, but I'm glad you've done it faster as I was just thinking, how exactly am I going to test it...
I'll have a few minor suggestions specific to the issue shortly, but what I'd appreciate if you could add all the other optimizations in another PR, I'm finding it easier to manage

Thanks

@sberyozkin
Copy link
Contributor

@luneo7 LGTM overall, thanks very much, minor suggestions are proposed, and please follow up later with a standalone dedicated PR, enjoy the weekend

@sberyozkin
Copy link
Contributor

Forgot one thing - please add a new property description in the config docs - probably next to the JWK refresh interval property

@luneo7
Copy link
Contributor Author

luneo7 commented Nov 15, 2024

@sberyozkin done the requested changes =)

Copy link
Contributor

@sberyozkin sberyozkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help, @luneo7

@sberyozkin sberyozkin added this to the 4.6.1 milestone Nov 15, 2024
@sberyozkin sberyozkin merged commit a8f50f1 into smallrye:main Nov 15, 2024
7 checks passed
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 this pull request may close these issues.

2 participants