You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/10/09 02:22:29 UTC

[GitHub] [pulsar] tuteng commented on a change in pull request #12305: [C++] Support configuring optional scope field for OAuth2 authentication

tuteng commented on a change in pull request #12305:
URL: https://github.com/apache/pulsar/pull/12305#discussion_r725417245



##########
File path: pulsar-client-cpp/tests/AuthPluginTest.cc
##########
@@ -388,3 +389,34 @@ TEST(AuthPluginTest, testOauth2CredentialFile) {
     ASSERT_EQ(data->hasDataFromCommand(), true);
     ASSERT_EQ(data->getCommandData().length(), expectedTokenLength);
 }
+
+TEST(AuthPluginTest, testOauth2RequestBody) {
+    ParamMap params;
+    params["issuer_url"] = "https://dev-kt-aa9ne.us.auth0.com";
+    params["client_id"] = "Xd23RHsUnvUlP7wchjNYOaIfazgeHd9x";
+    params["client_secret"] = "rT7ps7WY8uhdVuBTKWZkttwLdQotmdEliaM5rLfmgNibvqziZ-g07ZH52N_poGAb";

Review comment:
       This seems to use a real auth0 environment, not sure it's appropriate to put secret here




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org