mthizo247 / spring-cloud-netflix-zuul-websocket

Zuul reverse proxy web socket support
Apache License 2.0
139 stars 72 forks source link

Not working with ChannelInterceptorAdapter #6

Open saumyasuhagiya opened 7 years ago

saumyasuhagiya commented 7 years ago

I have implemented security in notification microservice by using [Web sockets with Spring and Spring Security] (https://robertleggett.wordpress.com/2015/05/27/websockets-with-spring-spring-security/)

The microservice runs super fine before integrating with spring-cloud-netflix-zuul-websocket. But after that it stopped working.

I have observed it deeply and found that spring-cloud-netflix-zuul-websocket library is sending CONNECT request's response 'CONNECTED' back from gateway only and after that it sends the request to actual micro-service for authentication.

Expected behavior is to send it for authentication first then only allow it to be CONNECTED or DISCONNECT (based on result of auth).

Any help will be appreciated .

mthizo247 commented 7 years ago

Hi. I don't understand what you are experiencing because the CONNECT request is handled synchronously. You can send me a sample github repo and highlight where things fail. Thanks.