-
Notifications
You must be signed in to change notification settings - Fork 692
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
TOMEE-4284 - Implement tomee.mp.jwt.allow.no-exp property over mp.jwt.tomee.allow.no-exp #990
TOMEE-4284 - Implement tomee.mp.jwt.allow.no-exp property over mp.jwt.tomee.allow.no-exp #990
Conversation
Should I change the property name in the JWT TCK? |
Do we have an issue for this one @tichovz ? |
Hi! I have no issues for this, but David asked if could take a look at it.
|
Thanks. That was the missing link, so maybe you can just rebase and we do a CI build to see, if it breaks anything? |
Thanks, Would I make a rebase with the main branch or the 9.x branch? |
Let's test against main and if it looks nice, we should backport to 9.1.x too |
I made a rebase to main and it seems ok. |
@@ -117,6 +119,15 @@ private JWTAuthConfiguration createJWTAuthConfiguration() { | |||
config.getOptionalValue("mp.jwt.decrypt.key.algorithm", String.class).orElse(null), | |||
config.getOptionalValue("mp.jwt.verify.publickey.algorithm", String.class).orElse(null)); | |||
} | |||
|
|||
private Boolean queryAllowExp(){ |
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.
private Boolean queryAllowExp(){
return config.getOptionalValue("tomee.mp.jwt.allow.no-exp", Boolean.class)
.or(() -> config.getOptionalValue("mp.jwt.tomee.allow.no-exp", Boolean.class)
.map(value -> {
CONFIGURATION.warning("mp.jwt.tomee.allow.no-exp property is deprecated, use tomee.mp.jwt.allow.no-exp propert instead.");
return value;
}))
.orElse(false);
}
to avoid to read both entries all the time (Config
can be slow depending the ConfigSource
) and to avoid the AtomicBoolean
which is not needed?
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 the improvement.
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.
@tichovz Can you include the feedback provided by Romain? :)
…no-exp