Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Tokens in Pulsar Beam #67

Open
malon875875 opened this issue Jun 28, 2021 · 0 comments
Open

Using Tokens in Pulsar Beam #67

malon875875 opened this issue Jun 28, 2021 · 0 comments

Comments

@malon875875
Copy link

Hi
This is more of a question about Pulsar Beam registering webhooks

I have a docker instance of Pulsar Standalone, another instance of Pulsar Admin and a docker instance Pulsar Beam running locally.

I create a token with https://pulsar.apache.org/docs/en/administration-pulsar-manager/#set-administrator-account-and-password and use it

curl -v -X POST -H "Authorization: Bearer $TOKEN1" -d ' {"TopicFullName": "persistent://tenant22/namespace2/test-topic3", "PulsarURL": "pulsar+ssl://toronto.do.kafkaesque.io:6651", "Token": "TOKEN2", "Webhooks": [{"URL": "https://webhook.com/webhook1", "InitialPosition": "earliest", "Subscription": "mysub", "WebhookStatus": 1}]}' localhost:8085/v2/topic

When using the API Create-or-Update-Topic https://kafkaesque-io.github.io/pulsar-beam-swagger/#/ for I do get the "Unauthorized" error

it is not clear to me how to get TOKEN1 and TOKEN2.
what configurations should I do in order to allow Pulsar Beam to register webhooks ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant