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

Unable to connect using Bcrypted password #518

Open
Bhogster opened this issue Nov 30, 2023 · 1 comment
Open

Unable to connect using Bcrypted password #518

Bhogster opened this issue Nov 30, 2023 · 1 comment
Labels
defect Suspected defect such as a bug or regression

Comments

@Bhogster
Copy link

Observed behavior

The code for connecting to NATS server using bcrypted credentials is

nc = await nats.connect(servers = ["nats://103:$2a$11$lDyjSYtC5uKSn2k3W2jufevGKQpfMB2CxVSgijfkXJCn7yRfAnP6e@0.0.0.0:4222"])

Server Config is

authorization: { users: [ {user: "103",password: "$2a$11$lDyjSYtC5uKSn2k3W2jufevGKQpfMB2CxVSgijfkXJCn7yRfAnP6e"} ] }

Below is the error for the same
Traceback (most recent call last):
File "/home/bhogster/miniconda3/lib/python3.9/site-packages/nats/aio/client.py", line 489, in connect
await self._process_connect_init()
File "/home/bhogster/miniconda3/lib/python3.9/site-packages/nats/aio/client.py", line 1999, in _process_connect_init
raise errors.Error("nats: " + err_msg.rstrip('\r\n'))
nats.errors.Error: nats: 'Authorization Violation'

Expected behavior

Successful Login

Server and client version

nats-server: v2.10.5
nats: 0.1.1

Host environment

Ubuntu

Steps to reproduce

No response

@Bhogster Bhogster added the defect Suspected defect such as a bug or regression label Nov 30, 2023
@joachimvenaas
Copy link

I'm having the same issue, did you get any further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

2 participants