wolfstudy opened a new pull request #7791:
URL: https://github.com/apache/pulsar/pull/7791


   Signed-off-by: xiaolong.ran <[email protected]>
   
   
   ### Motivation
   
   The `issue_url` in the current cpp example needs to be suffixed with 
`/oauth/token`, otherwise it cannot be recognized correctly and the following 
error will be returned:
   
   ```
   OAuth2 auth data: 2020-08-10 15:21:06.117 ERROR [0x10ff855c0] AuthOauth2:243 
| Response failed for issuerurl 
https://auth.test.cloud.gcp.streamnative.dev/oauth2/token. response Code 404 
passedin: {
       "grant_type": "client_credentials",
       "client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
       "client_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
       "audience": "urn:sn:pulsar:pi-ns:pi-name"
   }
   
   libc++abi.dylib: terminating with uncaught exception of type char const*
   ```
   
   
   ### Modifications
   
   Add a fixed suffix of `/oauth/token` to issuer_url
   
   ### Verifying this change
   
   Fix test cases as follows:
   
   - testOauth2CredentialFile
   - testOauth2WrongSecret
   - testOauth2


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to