-
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
Add annotation to allow using custom CDI bean methods as permission checkers #43846
Add annotation to allow using custom CDI bean methods as permission checkers #43846
Conversation
This comment has been minimized.
This comment has been minimized.
903b9f0
to
793a99f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks @michalvavrik, sorry for the delay, will start looking tomorrow, need to sign off now |
no worry, if don't have API anyway (I run all the related tests locally, so I don't expect CI issues), take your time, this won't be easy to review even though this PR consist mostly of tests |
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
793a99f
to
484114f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
extensions/security/runtime/src/main/java/io/quarkus/security/runtime/QuarkusPermission.java
Outdated
Show resolved
Hide resolved
...s/security/test/permissionsallowed/checker/NoArgsPermissionCheckerValidationFailureTest.java
Show resolved
Hide resolved
...me/src/main/java/io/quarkus/security/runtime/QuarkusPermissionSecurityIdentityAugmentor.java
Show resolved
Hide resolved
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.
This is going to be a massive feature, thanks @michalvavrik
I've addressed @FroMage and @cescoffier comments (thanks!) and added required validations and their tests. Specifically I believe |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f500592
to
6aa71ec
Compare
Although I made changes when there was electricity outage, now that I rerun all the test, there was ugly hack on |
6aa71ec
to
5c78754
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
No sorry, |
5c78754
to
776d47c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
776d47c
to
3d5a7cf
Compare
This comment has been minimized.
This comment has been minimized.
3d5a7cf
to
ee1c852
Compare
Status for workflow
|
🙈 The PR is closed and the preview is expired. |
Status for workflow
|
CI is green! |
Thanks @michalvavrik for completing this important enhancement. @gsmet Are you still somewhat concerned with how it will all stand against the code evolution or have some other concerns ? I think we are ready to merge otherwise as @cescoffier has also approved. Note we hope some internal code made to support this PR may go, with more simplifications planned |
I think @gsmet won't be around for next 4 days starting tomorrow. It has been 2 weeks since we discussed it here quarkusio/quarkus-security#56. While I am personally fine with waiting for whatever time, I don't believe it is necessary. It takes but a minute to give heads up that you need more time to review. I will try to address any concerns raised whether it is now or when PR is merged. Thanks |
That said, let's wait, I didn't mean to press you :-) |
Sure, let me merge, @gsmet, please ping us any time to clarify the details, a brief summary of the PR:
|
This PR is ready for review, however CI cannot run until quarkusio/quarkus-security#56 is merged and Quarkus Security API is released and bumped in the Quarkus project.