joshlong-attic / boot-examples

a repository for convenient Spring Boot examples
Apache License 2.0
226 stars 152 forks source link

Using x-auth-security to connect Web Socket Stomp with x-auth-token #17

Open w3blogfr opened 9 years ago

w3blogfr commented 9 years ago

Hello, I'm trying to make authentication based on your x-auth-token, but adapted for web-socket

For rest url, I'm authentificated and evrything work fine, but not for websocket.
Error is due to Filter seem to not recognize stomp header.

I try to connect via javascript. stompClient.connect({'x-auth-token':myAuthToken }, function(frame) { });

Is there anyway to filter or to add channelInterceptor on the websocket connection and to add the same validateToken method?

Thanks a lot.

DineshShende commented 9 years ago

Same Issue...It their any solution for this.

youssefbounar commented 8 years ago

me too Same Issue :(

wildone commented 1 year ago

Is this still valid?

wildone commented 1 year ago

Is this still valid?