BewareMyPower opened a new pull request, #106:
URL: https://github.com/apache/pulsar-client-python/pull/106

   Fixes https://github.com/apache/pulsar-client-python/issues/101
   
   ### Motivation
   
   Currently the `private_key` field of the JSON passed to 
`AuthenticationOauth2` only represents the path to the file, we need to support 
passing the base64 encoded JSON string.
   
   ### Modifications
   
   Since the C++ client supports reading the `client_id` and `client_secret` 
fields from the JSON, a `_convert` method, which converts the `private_key` 
field to the `client_id` and `client_secret` fields, is added to 
`AuthenticationOauth2`. Then, users can specify the base64 encoded value in the 
`private_key` field.
   
   Since the current workflow already uses a `tokenSecretKey` config for JWT 
authentication and this secret key cannot be used to verify the OAuth2 access 
token, a docker-compose YAML file is added to set up another Pulsar standalone 
with OAuth2 authentication configured. `oauth2_test.py` is added to run against 
this separated cluster.


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

Reply via email to