-
Notifications
You must be signed in to change notification settings - Fork 433
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
Security API enhancements #296
Comments
I'm not sure I understand
is exactly the fallback you are asking, no? |
@jvmlet |
@vicmosin , I think this is what you are after : builder.authorizeRequests()
.services(SomeServiceGrpc.getServiceDescriptor()).hasAnyRole(admin)
.anyServiceExcluding(SomeServiceGrpc.getServiceDescriptor()).hasAnyRole(user) Please try with latest |
|
@jvmlet thnx for quick solution but I think there is still something either wrong there or I do it wrong.. for example,
now with such config if I call createX without providing auth details, the call goes through.. if I revert to 4.7.0 and define all the methods individually then it works as expected |
Such config leaves all |
yes
No, it works as expected.. i.e. calls without auth details throw So basically it seems like |
btw maybe it makes sense to rename them to be more self-explaining.. something like |
They are not |
Hi there,
I wonder whether we could have something like
Idea is to have a fallback restriction to service's methods if one forgot to define the method restriction in configuration. Right now such approach doesn't seem to work. For example, the snippet above will set all the methods of the
SomeServiceGrpc
to have at leastuser
role even if it's not explicitly specified in the configurationThank you
The text was updated successfully, but these errors were encountered: