-
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 permission checks via @PermissionsAllowed
security annotation
#31345
Allow permission checks via @PermissionsAllowed
security annotation
#31345
Conversation
This comment has been minimized.
This comment has been minimized.
ffe7e7b
to
3a525d5
Compare
This comment has been minimized.
This comment has been minimized.
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
3a525d5
to
dd747b4
Compare
This comment has been minimized.
This comment has been minimized.
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
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
...va/io/quarkus/resteasy/reactive/server/test/security/AbstractPermissionsAllowedTestCase.java
Show resolved
Hide resolved
...ava/io/quarkus/resteasy/reactive/server/runtime/security/SecurityContextOverrideHandler.java
Outdated
Show resolved
Hide resolved
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
.../main/java/io/quarkus/resteasy/reactive/server/runtime/StandardSecurityCheckInterceptor.java
Show resolved
Hide resolved
extensions/security/deployment/src/main/java/io/quarkus/security/deployment/DotNames.java
Show resolved
Hide resolved
docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc
Outdated
Show resolved
Hide resolved
extensions/security/deployment/src/main/java/io/quarkus/security/deployment/DotNames.java
Show resolved
Hide resolved
...ytron-security-jdbc/src/main/java/io/quarkus/elytron/security/jdbc/it/WorkdayPermission.java
Show resolved
Hide resolved
d8287e8
to
9421b80
Compare
🙈 The PR is closed and the preview is expired. |
This comment has been minimized.
This comment has been minimized.
4be7f6a
to
dd19dd7
Compare
This comment has been minimized.
This comment has been minimized.
@michalvavrik With the latest doc update it is much clearer, thanks. And there is no need to do any further enhancements, please see why below.
has confused me in a big way, as your example shows how it actually works now in RestEasy reactive flow - the only thing that is required to make it work is to have I'd like to propose to change
to
Something like that would make it a bit clearer IMHO, thanks |
dd19dd7
to
9dd8cf1
Compare
Done, thank you. |
This comment has been minimized.
This comment has been minimized.
9dd8cf1
to
3de45c1
Compare
✔️ 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. |
Hey @stuartwdouglas , it seems like we concluded the docs discussion, please find a time to review this PR, thank you. |
@michalvavrik Thanks, just wanted to approve and found I approved earlier, but now it is really approved :-) @stuartwdouglas, please approve, would be awesome to get it into the next 3 alpha release |
Hey @michalvavrik Thanks for this work, can you please look at having the mapping done at the HTTP security policy between roles and permissions ? It probably makes sense to prioritize on this task just to make this feature you created a bit more accessible, for the users to avoid having to write custom augmentors to register. I'll look next at the mapping between OIDC token scopes and permissions |
Sure @sberyozkin , I'll work on that over weekend. Before that, I'll open some discussion in #12219 as I think this is opinionated subject and would like to here a feedback for my proposals I'll prepare. BTW. I also have docs enhancement for Permissions and Keycloak authorizer in progress. |
Thanks @michalvavrik , but I do hope you won't lose your weekend on it, please have a good rest |
What is the target release for this feature please? |
@nikosk686 Quarkus 3, there are still follow-ups in progress. |
@michalvavrik I see, thanks! I was hopping that this will be part of the next 2.x release. |
closes: #10988
Introduces new
@PermissionsAllowed
annotation. I'd suggest to readsecurity-authorize-web-endpoints-reference.adoc
this PR modifies for details on this PR (as it's a lot of text).