From fe3a72da9e14c48be1801bb1edf10366dc4b66b5 Mon Sep 17 00:00:00 2001 From: futeng Date: Wed, 26 Feb 2020 17:52:46 +0800 Subject: [PATCH 1/2] Add on the missing right parenthesis Missing right parenthesis in the `token()` line from Pulsar Client Java Code. --- site2/docs/security-jwt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site2/docs/security-jwt.md b/site2/docs/security-jwt.md index 46cf2e6925ec7..aa79bae726e7f 100644 --- a/site2/docs/security-jwt.md +++ b/site2/docs/security-jwt.md @@ -54,7 +54,7 @@ You can use tokens to authenticate the following Pulsar clients. PulsarClient client = PulsarClient.builder() .serviceUrl("pulsar://broker.example.com:6650/") .authentication( - AuthenticationFactory.token("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKb2UifQ.ipevRNuRP6HflG8cFKnmUPtypruRC4fb1DWtoLL62SY") + AuthenticationFactory.token("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKb2UifQ.ipevRNuRP6HflG8cFKnmUPtypruRC4fb1DWtoLL62SY")) .build(); ``` From 0be5102fbf390bf6948598c1dc63567db32e008e Mon Sep 17 00:00:00 2001 From: futeng Date: Thu, 27 Feb 2020 09:33:29 +0800 Subject: [PATCH 2/2] Add on the missing right parenthesis on line L70 --- site2/docs/security-jwt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site2/docs/security-jwt.md b/site2/docs/security-jwt.md index aa79bae726e7f..ff2e99efe8701 100644 --- a/site2/docs/security-jwt.md +++ b/site2/docs/security-jwt.md @@ -67,7 +67,7 @@ PulsarClient client = PulsarClient.builder() AuthenticationFactory.token(() -> { // Read token from custom source return readToken(); - }) + })) .build(); ```