Reorganize interceptor

This commit is contained in:
Dave Syer
2025-01-23 13:39:38 +00:00
parent 5433d422c0
commit 6cf4a74384
6 changed files with 29 additions and 59 deletions

View File

@@ -151,7 +151,7 @@ public class GrpcServerApplicationTests {
@Lazy
SimpleGrpc.SimpleBlockingStub basic(GrpcChannelFactory channels) {
return SimpleGrpc.newBlockingStub(channels.createChannel("basic", ChannelBuilderOptions.defaults()
.withInterceptors(List.of(new BasicAuthenticationInterceptor("user", "user")))));
.withInterceptors(List.of(new BasicAuthenticationInterceptor("user", "user")))));
}
@Bean