Relative Content

Tag Archive for javamongodbspring-bootspring-securitybackend

Authentication from WebSocket interceptor channel not persisted accross the controller and service layers

i am currently working on a spring boot project. i am using spring boot vv3.1.4 and spring security v6.1.4. i have a JWT authentication set up in my project which works fine for HTTP requests. I also have websocket communication in the app. When establishing the websocket handshake i am sending the token as a query parameter and getting it in the JWT service which works fine for now. My issue is withe websocket messages. I have this preSend channel interceptor:

Authentication fro WebSocket interceptor not persisted accross the controller and service layers

i am currently working on a spring boot project. i am using spring boot vv3.1.4 and spring security v6.1.4. i have a JWT authentication set up in my project which works fine for HTTP requests. I also have websocket communication in the app. When establishing the websocket handshake i am sending the token as a query parameter and getting it in the JWT service which works fine for now. My issue is withe websocket messages. I have this preSend channel interceptor: