RabbitMQ 和授权
我的一个项目需要进行身份验证才能使用 RabbitMQ。只有经过身份验证的用户才能连接到rabbitmq服务器并订阅队列等。例如,当用户第一次连接到服务器并发送一些身份验证数据(如登录名、密码)时,服务器应该检查它,如果用户通过身份验证后,他将能够订阅队列等。否则,服务器将断开用户的连接。有解决办法吗?
请不要太严厉地评判,我对 RabbitMQ 之类的东西不太熟悉。
One of my projects requires authentication for using RabbitMQ. Only authenticated users can connect to the rabbitmq server and subscribe to queues etc. For example, when a user connects to the server for the first time and sends some auth data (like login, password) - server should check it and, if the user passed authentication, he will be able to subscribe to queues etc. Otherwise, the server would disconnect the user. Is there a solution for this?
Please don't judge too harshly, I'm not really familiar with RabbitMQ and stuff like this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个你自己很容易发现。对术语“RabbitMQ Authentication”进行简单的 Google 搜索会返回此页面作为第一个条目:
This is very easy to find out yourself. A simple Google search for the terms, "RabbitMQ Authentication" returns this page as the first entry:
这个 amqplib 文档给出了一个简单的答案。
This amqplib documentation gives a straightforward answer.