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
Springboot Method Level Security not working with GRPC #50
Comments
For me the following worked:
|
See also: pagrus7/grpc-spring-boot-starter@15ab3c0 |
Hi, thanks for comments, I will check on them. |
If all goes well I might be able to PR some more features such as Security auto configuration to this project. Since that is work related I have to check with the company first. |
@yidongnan Would you merge a corresponding contribution (from me), or do you want to keep the library as slim as possible? |
I setup a Springboot (SSL) application with GRPC, including few REST controllers too.
Method Level Security not working in GRPC controllers, neither inside invoked service layer and jpa layer methods too.
Still works well in REST controllers.
Status{code=UNKNOWN, description=null, cause=null} is retrieved when invoke a GRPC service method with @PreAuthorize("hasAuthority('ROLE')"). I checked with debug that SecurityContextHolder does not have an Authentication object.
In maven pom.xml, dependencies are presented as below.
Is this a configuration issue with this dependency, or seems I am missing something?
Should I do some JWK configuration?
The text was updated successfully, but these errors were encountered: