I'm following Vert.x 4's SockJS documentation and noticed that each SockJSSocket inside my handler has a .webSession() and a .webUser(). However, both these fields are empty aside from the .webSession().id()
I have an AuthHandler registered on the sub-router that this socket handler is on, but the SockJS Client in my frontend is not capable of sending credentials in the HTTP upgrade request.
How am I supposed to populate these fields for use?
router.route().handler(SessionHandler.create(store)- injecteerSessionHandler.create(LocalSessionStore.create(vertx))further up in my router to handle authentication. It works fine for HTTP requests because I add the JWT bearer, but I cannot figure out how to add the JWT to the initial SockJS HTTP handshake request. Do you think I should use a different store type, and notLocalSessionStore? - foxtrotuniform6969