[rabbitmq-discuss] RabbitMQ Web-Stomp Plugin securing the connection to the message broke

Spico Florin spicoflorin at gmail.com
Wed Mar 19 12:46:43 GMT 2014


Hello!
In the page describing RabbitMQ Web-Stomp Plugin (
http://www.rabbitmq.com/web-stomp.html), I found the following code to
connect to the RabbitMQ via Web-Stomp Plugin:

    var on_connect = function() {
        console.log('connected');
    };
    var on_error =  function() {
        console.log('error');
    };
    client.connect('guest', 'guest', on_connect, on_error, '/');

I would like to use this approach in an an application that will be
installed on production mode.
Unfortunately, the code:


 client.connect('guest', 'guest', on_connect, on_error, '/');

is node acceptable for the security point of view. Therefore, can you
please provide me
the right solution on how to handle the connection in a secured way (i.e.
by not providing plain credentials in the
in JS or html).
I look forward for your answers.
Thank you.
 Regards,
  Florin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140319/647719f4/attachment.html>


More information about the rabbitmq-discuss mailing list