-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conversation
/cc @sberyozkin |
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... Thanks |
implementation/jwt-auth/src/main/java/io/smallrye/jwt/config/JWTAuthContextInfoProvider.java
Outdated
Show resolved
Hide resolved
implementation/jwt-auth/src/main/java/io/smallrye/jwt/config/JWTAuthContextInfoProvider.java
Outdated
Show resolved
Hide resolved
implementation/jwt-auth/src/main/java/io/smallrye/jwt/config/JWTAuthContextInfoProvider.java
Outdated
Show resolved
Hide resolved
...ation/jwt-auth/src/main/java/io/smallrye/jwt/auth/principal/AbstractKeyLocationResolver.java
Outdated
Show resolved
Hide resolved
@luneo7 LGTM overall, thanks very much, minor suggestions are proposed, and please follow up later with a standalone dedicated PR, enjoy the weekend |
Forgot one thing - please add a new property description in the config docs - probably next to the JWK refresh interval property |
@sberyozkin done the requested changes =) |
There was a problem hiding this 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
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