-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support for verifying OIDC JWT claims with custom Jose4j Validator
#39793
Support for verifying OIDC JWT claims with custom Jose4j Validator
#39793
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
48805cd
to
b249248
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi Michal, @michalvavrik, thanks very much. This PR resolves the enhancement request indeed, thanks for the effort, but it looks significantly more sophisticated than I was imagining it would be. Do we really need all of it ? What do you think ? |
Honest answer is no. It all goes down to my honest conviction how we should design Quarkus features. I am well aware how The point here really is to do things during the build if possible and as little as possible during static init. You can say it makes no difference in comparation to that finder, but it only makes no difference to one feature. It will make difference to 500 features. That's why there is more deployment code.
I have no problem to drop that, but before that, I'd like to provide you my POV: That is just one build step producing Java predicate applied during the build time. Only reason why the
I answer that in the first paragraph of my code. I will respect if you require that and I'll rewrite this, but I think my PR is better. I was thinking the other way around - to make my code more generic so that anything annotated with |
Sure, @michalvavrik, you are right in principle, I support it, it makes sense, I suppose we should keep moving toward optimizing things for OIDC. What do you think ? I think there could be some asks for this Validator feature be backported, which will have to be discussed with the team and PM, but we may have problems convincing it can be possible with currently quite involved PR. FYI, have to sign off right now, will comment later, thanks |
I agree to simplify this PR. When this gets in, I'll open a PR that refactors the
That's convincing point even considering it might never happen (which is not relevant). |
Sounds good @michalvavrik, indeed, for now, please expect users will add |
b249248
to
9c74b2c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'll do the refactoring as part of the #39799. This PR is really trivial, but I am not sure when we have all the information at the build time, we should do this at the runtime. We will say how refactored version will go down... |
It is a simple and good start, thanks @michalvavrik, if you don't mind, can you only do a minor doc update early next week, have it under a |
@michalvavrik Let me push that doc update a bit later to save you a tiny bit of time :-) |
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.
LGTM, many thanks @michalvavrik, ready to go pending a minor doc update, this feature is currently scheduled for 3.10.
CC @calvernaz
thanks! |
By the way @michalvavrik, something else to check before we merge next week, if we need to use |
I don't know what problems were there, but I don't do what |
9c74b2c
to
d952eda
Compare
d952eda
to
812d263
Compare
Did a minor doc update, waiting for the CI to pass |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like Keycloak was not loaded in time for the native oidc-code-flow test failure, this PR does not impact it |
812d263
to
76b035b
Compare
Status for workflow
|
Status for workflow
|
🙈 The PR is closed and the preview is expired. |
closes: #39425