bfenetworks / bfe

A modern layer 7 load balancer from baidu
https://www.bfe-networks.net
Apache License 2.0
6.09k stars 942 forks source link

JWT support in WebSocket? #690

Open wanyxkhalil opened 3 years ago

wanyxkhalil commented 3 years ago

I'm new in bfe. I found JWT filter working with http but not WebSocket, ws request transfer to backend like no JWT filter. Something I missing?

Modules = mod_auth_jwt
$ http localhost:8080/ws                                                                                                        
HTTP/1.1 401 Unauthorized
wanyxkhalil commented 3 years ago

目前看到模块在 bfe_server/http_conn.go 501 行里,而 WebSocket 不会进入此行(version: 0.12.0) image

iyangsj commented 3 years ago

@wanyxkhalil 感谢你的关注!后续版本将支持

wanyxkhalil commented 3 years ago

Thanks!