eyeos / spice-web-client

A full featured and high performance SPICE web client written in Javascript and HTML5
MIT License
285 stars 104 forks source link

How to pass a token to websockify when the websockify use token-plugin? #7

Open zhangqunshi opened 8 years ago

zhangqunshi commented 8 years ago

Hi guys, I have a question to use this software: the websockify setup running as token-plugin mode, and I want to let spice web client to pass a token of VM to websockify, then how should i do? I saw there is a parameter "vmInfoToken" in the run.js, but it doen't work when call url http://localhost/spice-web-client/index.html?vmInfoToken=abc&host=192.168.10.100&port=5959. Any advice is welcome!

Thanks in advance, Kris

zhangqunshi commented 8 years ago

I got the solution, modify the file lib/utils.js, 293 line change to what you want, and I tested it, it's works!

Alecyrus commented 7 years ago

@zhangqunshi Can the solution work on OpenStack?

zhangqunshi commented 7 years ago

i am not sure, you can try.