Class GrpcServerSecurityAutoConfiguration

java.lang.Object
net.devh.boot.grpc.server.autoconfigure.GrpcServerSecurityAutoConfiguration

Auto configuration class with the required beans for the spring-security configuration of the grpc server.

To enable security add both an AuthenticationManager and a GrpcAuthenticationReader to the application context. The authentication reader obtains the credentials from the requests which then will be validated by the authentication manager. After that, you can decide how you want to secure your application. Currently these options are available:

Note: The order of the beans is important! First the exception translating interceptor, then the authenticating interceptor and finally the authorization checking interceptor. That is necessary because they are executed in the same order as their order.