changkun / occamy

🖥️ a modern remote desktop proxy written in Go
https://github.com/changkun/occamy
MIT License
313 stars 54 forks source link

Eliminate handshake process in Guacamole protocol #2

Closed changkun closed 5 years ago

changkun commented 5 years ago

Is your feature request related to a problem? Please describe. The current connection can be established with a required handshake phase in Guacamole protocol. https://github.com/changkun/occamy/blob/34ee80ee97d3821fe7238873ee018dbf4bb8e997/server/session.go#L123 It is unnecessary for the communication because the handshake between client and server is done by JWT authentication.

Describe the solution you'd like A doable approach:

client --> send JWT --> Occamy --> set guac_user's info --> response ready

This approach simplifies the following Guacamole instruction: size, audio, video, image, args, ready.