-
Notifications
You must be signed in to change notification settings - Fork 476
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
Connect 'mechanism' is hardcoded to 'PLAIN' #105
Comments
You're absolutely right, amqplib doesn't make any attempt to support anything other than You're after |
IMO |
@utestmig I've pushed a change to master which adds the ability to give credentials when connecting. To use it, you do something like this: var amqp = require('amqplib');
var opts = {
// ... SSL certificates and so on
credentials: amqp.credentials.external()
};
var open = amqp.connect("amqps://rabbit:5671", opts);
// ... (An explanation of the SSL options is given in http://www.squaremobius.net/amqp.node/doc/ssl.html, which you have probably found already) I have a bit more work to do on it, but would you try it out and let me know if it 1. works properly 2. works in the way you'd expect. Thanks! |
Thanks!!! |
@squaremo works! Thanks again. |
Could someone hint me to the documentation of this behaviour please? |
10 years later, still adding a ton of value here with this fix. Thanks! 😂 |
Our rabbit installation isn't configured for 'PLAIN' and IT does not want to use plain. We authenticate via SSL certs. However, the connection code has it hardcoded to 'PLAIN' and there isn't a way to pass in a different mechanism setting type.
The text was updated successfully, but these errors were encountered: