Skip to content

Commit 5436664

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 79e3121 + 8b05c32 commit 5436664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ class MyClient{
905905
);
906906
907907
Channel authenticatedChannel = ClientInterceptors.intercept(
908-
ManagedChannelBuilder.forAddress("host", 6565), clientInterceptor <2>
908+
ManagedChannelBuilder.forAddress("host", 6565).build(), clientInterceptor <2>
909909
);
910910
// use authenticatedChannel to invoke GRPC service
911911
}
@@ -918,8 +918,8 @@ class MyClient{
918918
<1> Create client interceptor
919919
<2> Intercept channel
920920
<3> Turn the binary format on/off: +
921-
* When `true`, the authentication header is sent with `Authentication-bin` key using https://grpc.github.io/grpc-java/javadoc/io/grpc/Metadata.BinaryMarshaller.html[binary marshaller].
922-
* When `false`, the authentication header is sent with `Authentication` key using https://grpc.github.io/grpc-java/javadoc/io/grpc/Metadata.AsciiMarshaller.html[ASCII marshaller].
921+
* When `true`, the authentication header is sent with `Authorization-bin` key using https://grpc.github.io/grpc-java/javadoc/io/grpc/Metadata.BinaryMarshaller.html[binary marshaller].
922+
* When `false`, the authentication header is sent with `Authorization` key using https://grpc.github.io/grpc-java/javadoc/io/grpc/Metadata.AsciiMarshaller.html[ASCII marshaller].
923923
<4> Provide token generator function (Please refer to link:grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/auth/JwtAuthBaseTest.java[for example].)
924924

925925
Per-call::

0 commit comments

Comments
 (0)