diff --git a/vnc_lite.html b/vnc_lite.html
index 9a38439c..28ab25a7 100644
--- a/vnc_lite.html
+++ b/vnc_lite.html
@@ -156,6 +156,7 @@
const host = readQueryVariable('host', window.location.hostname);
let port = readQueryVariable('port', window.location.port);
const password = readQueryVariable('password', '');
+ const authToken = readQueryVariable('auth_token', '');
const path = readQueryVariable('path', 'websockify');
// | | | | | |
@@ -177,6 +178,10 @@
}
url += '/' + path;
+ if (auth_token !== '') {
+ url += "?auth_token=" + auth_token;
+ }
+
// Creating a new RFB object will start a new connection
rfb = new RFB(document.getElementById('screen'), url,
{ credentials: { password: password } });