cagucor opened a new issue #13684:
URL: https://github.com/apache/pulsar/issues/13684


   Hi Everyone, this issue is about the pulsar-function-go package.
   
   **Describe the solution you'd like**
   I need to authenticate a pulsar function to connect with a cluster.  Would 
it be possible to authenticate the function using the context with a token 
parameter supplied through the config file?
   
   **Describe alternatives you've considered**
   Reading the documentation I can see how function auth is done in k8s by 
using the TokenAuthProvider. However, I want to test my function locally first.
   
   **Additional context**
   I may be wrong, but the feature doesn't seem too difficult to implement and 
would require a change to the setupClient() function similar to the code I 
added in line 194.
   <img width="733" alt="Screen Shot 2022-01-10 at 1 42 19 PM" 
src="https://user-images.githubusercontent.com/55970423/148707859-7d70773e-c4dc-44a5-b447-c6f78d63dbf1.png";>
   
   


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