Best practice for authentication for Stomp Websockets users #7031
Unanswered
h0jeZvgoxFepBQ2C
asked this question in
Questions
Replies: 1 comment 5 replies
-
Modern RabbitMQ versions support OAuth 2 (JWT) tokens, so that could be a better option for Web-based clients. I'd say that every type of client needs its own credentials. I can imagine that in some cases a set of @MarcialRosales do you have an opinion? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
right now I try to understand what the best authentication mechanism would be for my usecase:
I only use rabbitmq for stompjs websockets in streaming-mode (so only fanout more or less). I would like to prevent that all users have the same username/password, since I guess this would be a bit insecure, in case I want to switch to a bidirectional websocket connection?
Do I really have to create a new dedicated user for each website visitor (all users are logged in, no anonymous)?
This is really cumbersome, since I would have to delete the user afterwards in rabbitmq again, when the websession ends?
Or do I think about this completely wrong?
Any suggestions?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions