Hello I am triying to connect to apache pulsar cluster using stream native, I don't have problems with token oauth, but when I try to make Oauth I always get malformed responde or 404 I am using curl and python client, and following their instructions,like this.
params = '''
{
"issuer_url": "https://auth.streamnative.cloud/",
"private_key": test.json",
"audience": "urn:sn:pulsar:test:test"
}
'''
pulsar_client = pulsar.Client(
PULSAR_URL,
authentication=AuthenticationOauth2(params)
)
and the error is the following:
AuthOauth2:223 | Response failed for getting the well-known configuration https://auth.streamnative.cloud/. response Code 404
But the params and url I get from https://console.streamnative.cloud/test/test/clients, but nothing.
Any Idea about how can I connect to the cluster with the oauth?
EDIT
With client the credentials works, looks like a bug in python package of pulsar 2.9.1.
Thanks