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 2022/06/05 15:04:17 UTC

[GitHub] [pulsar] gaoran10 commented on a diff in pull request #15928: [fix][auth] Generate correct well-known OpenID configuration URL

gaoran10 commented on code in PR #15928:
URL: https://github.com/apache/pulsar/pull/15928#discussion_r889702235


##########
pulsar-client-cpp/tests/AuthPluginTest.cc:
##########
@@ -412,6 +412,20 @@ TEST(AuthPluginTest, testOauth2RequestBody) {
     ASSERT_EQ(flow2.generateParamMap(), expectedResult2);
 }
 
+TEST(AuthPluginTest, getWellKnownOpenIdConfigurationUrl) {
+    std::string issuerUrl = "https://dev-kt-aa9ne.us.auth0.com";

Review Comment:
   Do you mean the case as flow2?
   
   ```
   params["issuer_url"] = issuerUrl.append("/");
   ClientCredentialFlow flow2(params);
   ASSERT_EQ(flow2.getWellKnownOpenIdConfigurationUrl(), configurationUrl);
   ```



-- 
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