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

Does this lib in any way support user/password to Rabbitmq? #13

Open
petternordlanderhelo opened this issue Oct 29, 2023 · 3 comments
Open

Comments

@petternordlanderhelo
Copy link

Is there any way to get user+password to connect? From what I can see, RabbitMqHostAddress does not include them and there is no way to enter a connection string. Is a PR required for this to be added?

@jdponomarev
Copy link

hey did you find a way to do it @petternordlanderhelo ?

@willemsevenster
Copy link

willemsevenster commented Nov 16, 2023

I used the following successfully:

const username = "<rabbitmq_username>";
const password = "<rabbitmq_password>";

const connectionString = `${username}:${password}@localhost`;
const options: HostSettings = {host: connectionString, virtualHost: "/", port: 5672};
const bus = require("masstransit-rabbitmq").default(options);

// .... rest of your code here

@petter-nordlander-pi
Copy link

@willemsevenster will try!

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

4 participants