apache/pulsar-client-go

How is pulsaradmin initialized with username and password

li-zeyuan opened this issue · 4 comments

How is pulsaradmin initialized with username and password

You can refer to here to configure admin token:

cfg := &config.Config{
Token: string(readFile),
}
admin, err := New(cfg)

Yes. And you can configure the authentication using these two parameters if you want to use other Auth methods:

AuthPlugin string
AuthParams string

But Pulsar doesn't support using the username/pasword for the authentication. For the supported Auth methods, you can check here: https://pulsar.apache.org/docs/next/security-overview/

Thank you very much.

Closed as answered.