novnc / websockify

Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service.
GNU Lesser General Public License v3.0
3.95k stars 780 forks source link

Added traffic plugin support #549

Open gschaden opened 1 year ago

gschaden commented 1 year ago

I wanted to use the this project together with noVNC to allow our customers/qa to connect to vnc devices(linux) on our private networks. I do not want them to know/enter passwords, but the devices have passwords configured. The traffic plugin system allows me to intercept the authentication and handle it differently. The example implementation takes a password provided by the JSONTokenApi

--traffic-plugin websockify.plugins.VncTokenAuthenticationTrafficPlugin --token-plugin JSONTokenApi --token-source https://someapie/verify?token=%s The API should respond with { "host": "localhost", "port": 5902, "password": "vncpassword" }