Improve documentation on the use of login/passcode headers for STOMP clients [SPR-11436] #16062
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: documentation
A documentation task
Milestone
Prashant Deva opened SPR-11436 and commented
All the documentation for spring websockets, including the guide here (http://spring.io/guides/gs/messaging-stomp-websocket/) , show client side code example as:
This is incorrect.
stompClient.connect
needs a username and password in the first 2 arguments.Running the
stompClient
passing in''
to theconnect()
method as shown in the examples, results in an error:It even leads to this server side exception:
One needs to pass the actual user/password to the messaging queue as described in #16061 which leads to a huge security issue
Affects: 4.0.1
The text was updated successfully, but these errors were encountered: