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:26:47 UTC
[GitHub] [pulsar] BewareMyPower commented on a change in pull request #12305: [C++] Support configuring optional scope field for OAuth2 authentication
BewareMyPower commented on a change in pull request #12305:
URL: https://github.com/apache/pulsar/pull/12305#discussion_r725417659
##########
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:
It's used for test only. See https://github.com/apache/pulsar/pull/7467/files#diff-8b92a461baa4a7ae3dbee13d3cfc90559c1ee8a46fef263cb76438ea83b598f8
--
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