grpc-ecosystem / grpc-ecosystem/grpc-spring
Parameter 1 of method authenticatingServerInterceptor in net.devh.boot.grpc.server.autoconfigure.GrpcServerSecurityAutoConfiguration required a bean of type 'net.devh.boot.grpc.server.security.authentication.GrpcAuthenticationReader' that
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
when I start Spring boot project
`Parameter 1 of method authenticatingServerInterceptor in net.devh.boot.grpc.server.autoconfigure.GrpcServerSecurityAutoConfiguration required a bean of type 'net.devh.boot.grpc.server.security.authentication.GrpcAuthenticationReader' that`
**Trace**
`***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 1 of method authenticatingServerInterceptor in net.devh.boot.grpc.server.autoconfigure.GrpcServerSecurityAutoConfiguration required a bean of type 'net.devh.boot.grpc.server.security.authentication.GrpcAuthenticationReader' that could not be found.
Action:
Consider defining a bean of type 'net.devh.boot.grpc.server.security.authentication.GrpcAuthenticationReader' in your configuration.
`
**The application's environment**
* Spring (boot):
* grpc-java:
* grpc-spring-boot-starter:
my project dependency Spring-Security,but I don't want enable security with gRPC Server,@SpringBootApplication(exclude = {GrpcServerSecurityAutoConfiguration.class}) Can start normally,would it be better to add `net.devh.boot.grpc.server.autoconfigure.GrpcServerSecurityAutoConfiguration` to `@ConditionalOnProperty(name = "grpc.server.security.enabled", havingValue = "true")`,Thanks
Contributor guide
Assessment
This issue has not been assessed yet.