-
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
Consider refactoring some of the PermissionChecker
support code
#45035
Comments
I provided some feedback on this PR here #45012 (comment). TL;DR;:
I think this issue is about this line of code https://github.com/michalvavrik/quarkus/blob/8f44d0d8d2caa733ca6f191974d2bd9ac6024407/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/QuarkusIdentityProviderManagerImpl.java#L210, which is result of a fact that we do |
I don't want it to looks like I am against it, I have already mentioned that if you want it, I'll address this issue. But if I can provide my personal opinion, then: I am happy to follow whatever is decided in this issue though. |
That said, I absolutely understand why you opened this, I am sure there is more people who share your opinion. |
Hey @michalvavrik Both of us will decide by agreeing if something needs to be done or not :-). You are welcome to challenge it. Sure, I just recall, I had something in mind during the earlier discussions which I thought at a time, would avoid having to deal with the internal augmentation, something along the lines of Thanks |
Yeah, it was hard to explain my thoughts without a loads of text, I'll come back to this when I have more time to think about it. Let's keep it open. |
Description
QuarkusSecurityPermissionAugmentor
is an internalSecurityIdentityAugmentor
, which works with another internal class,QuarkusPermission
to implement permission checks. It requires Quarkus Security be aware ofQuarkusSecurityPermissionAugmentor
.The current solution was provided with the best intent to help users to write custom permission checkers which were required if no
PermissionChecker
was available. However, withQuarkusSecurityIdentity.Builder
now providing severaladdPermission
shortcuts leading to the automatic allocation of permission checker functions, it is not obviousQuarkusPermission
should remain in the current form.The proposal here is to drop
QuarkusSecurityPermissionAugmentor
, and re-implementQuarkusPermission
for it to have itsimplies
effective...It is not a very imprtant issue to address, I only hope that making Quarkus Security be unaware of
QuarkusSecurityPermissionAugmentor
may help going forwardImplementation ideas
No response
The text was updated successfully, but these errors were encountered: