streamnative / pulsar-archived

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org
Apache License 2.0
73 stars 26 forks source link

ISSUE-14136: [Doc] Update security-jwt.md to make client authentication #3695

Open sijie opened 2 years ago

sijie commented 2 years ago

Original Issue: apache/pulsar#14136


What issue do you find in Pulsar docs?

when client authentication using tokens based on JSON web Tokens, my client will throw following exceptions.

Exception in thread "main" org.apache.pulsar.client.api.PulsarClientException$AuthenticationException: Unable to authenticate at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:920) at org.apache.pulsar.client.impl.ProducerBuilderImpl.create(ProducerBuilderImpl.java:94) at PulsarProducerTest.main(PulsarProducerTest.java:30) some modified propertiey in my standalone.conf

What is your suggestion?

we need to add a property named superUserRoles into broker.conf or standalone.conf and the value of superUserRolesis the role that we use to create token;

Do you have any references?

https://github.com/apache/pulsar/blob/master/site2/docs/security-jwt.md

Would you like to fix this issue?

yes

Note

github-actions[bot] commented 2 years ago

The issue had no activity for 30 days, mark with Stale label.