-
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
Allow restricting OidcRequestFilters to specific OIDC endpoints #37257
Conversation
This comment has been minimized.
This comment has been minimized.
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.
A few comments ...
extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/OidcRequestFilter.java
Outdated
Show resolved
Hide resolved
@pedroigor I'll need to update the docs |
@pedroigor Let me drop |
Let me also investigate the option of injecting |
@sberyozkin The point about injecting metadata is that we still allow users to perform decision checks based on the client request URL and the URL from the metadata. For instance, to filter only requests to the JWKS endpoint, we would have something like that in a filter implementation:
The main reason for this is to avoid additional complexity for Oidc Client and reduce maintenance burden when supporting additional endpoints. |
2dd3bc6
to
3896883
Compare
Hi @pedroigor, I've done some updates to this PR, and @michalvavrik also helped out analyzing the metadata injection options. So here is is the summary:
IMHO it is a reasonable compromise - if users want to filter all the endpoints or say only 2 of them, then How does it sound ? |
This comment has been minimized.
This comment has been minimized.
Dropped a noteworthy feature label as it is more like a necessary improvement |
3896883
to
7d16feb
Compare
/cc @pedroigor @calvernaz Hey Pedro, I hope you'll be glad to know I've decided to follow your suggestion and I've dropped So, now users can either restrict to specific endpoints using annotations or use |
7d16feb
to
efdc5c9
Compare
Unfortunately I forgot again to update the docs, done now |
✔️ The latest workflow run for the pull request has completed successfully. It should be safe to merge provided you have a look at the other checks in the summary. |
🙈 The PR is closed and the preview is expired. |
Fixes #37256