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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]