Comments (5)
For me the following worked:
- Implemented an authenticating interceptor similar to: https://github.com/revinate/grpc-spring-security-demo/blob/master/src/main/java/com/revinate/grpcspringsecurity/grpc/interceptor/BasicAuthenticationInterceptor.java
(If you don't do this you will always get AuthenticationExceptions) - an exception handler/mapper interceptor
(if you don't do this you will get RuntimeStatusException with internal error status codes) - Enable
@EnableGlobalMethodSecurity(securedEnabled = true, proxyTargetClass = true)
(if you don't do this you get RuntimeStatusException with unimplemented status codes. You will get a warning in the logs, though: see grpc/grpc-java#4970)
from grpc-spring.
See also: pagrus7/grpc-spring-boot-starter@15ab3c0
from grpc-spring.
Hi, thanks for comments, I will check on them.
from grpc-spring.
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.
from grpc-spring.
@yidongnan Would you merge a corresponding contribution (from me), or do you want to keep the library as slim as possible?
from grpc-spring.
Related Issues (20)
- Russian translation of docs HOT 6
- manen repository home page HOT 1
- When grpc client is deployed in Kubernetes, what is the usecase of HealthIndicator (actuator/health) that reports the service as OUT_OF_SERVICE if any client has the TRANSIENT_FAILURE status?
- Docs in GrpcChannelProperties not clear about `dns` scheme and have minor other problems HOT 6
- GRPC client fails to start in Spring Cloud environment HOT 13
- A question about Grpc load balancing and long connections HOT 3
- Micrometer throws ArrayIndexOutOfBoundsException exception when the grpc client cannot access a backend with metrics enabled. HOT 2
- Replace obsolete @PostConstruct annotation or implement InitializingBean HOT 1
- Apply grpc service config from consul HOT 1
- Error starting up grpc server in an existing project that uses spring HOT 2
- this dependency seems to be incompatible with new version 3.x of spring boot. HOT 4
- Spring boot with GRPC server blocking GRPC client request HOT 7
- When spring-boot-starter-actuator was introduced, a bug appeared HOT 3
- Caused by: java.lang.NoSuchFieldError: MTLS HOT 1
- HTTP/2 client preface string missing or corrupt HOT 5
- Received grpc requests twice HOT 3
- grpc ๆญฃๅไปฃ็
- Spring Security AccessDecisionManager is deprecated. What's the alternative? HOT 1
- SSLContextGrpcAuthenticationReader reads the wrong certificate from the peer certificates array HOT 2
- [Docs] gRPC-Spring-Boot-Starter Documentation: Getting Started - Project Setup (Server and Client) Exhibitory Imagery HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-spring.