Hello
I have several windows users that use the same server with different credentials.
How could it be for users to have automatic login when accessing the server in browser? That is, save the credentials.
Automatic login in browser
Re: Automatic login in browser
Hello,
Locate the index.html file in C:\Program Files (x86)\TSplus\Clients\www
Edit the file with notepad and modify the user and password value here in bold characters, it should look like this :
// --------------- Access Configuration ---------------
var user = "Olivier"; // Login to use when connecting to the remote server (leave "" to use the login typed in this page)
var pass = "TSplus"; // Password to use when connecting to the remote server (leave "" to use the password typed in this page)
var domain = ""; // Domain to use when connecting to the remote server (leave "" to use the domain typed in this page)
var server = "127.0.0.1"; // Server to connect to (leave "" to use localhost and/or the server chosen in this page)
var port = ""; // Port to connect to (leave "" to use localhost and/or the port of the server chosen in this page)
var lang = "as_browser"; // Language to use
var serverhtml5 = "127.0.0.1"; // Server to connect to, when using HTML5 client
var porthtml5 = "3389"; // Port to connect to, when using HTML5 client
var cmdline = ""; // Optional text that will be put in the server's clipboard once connected
// --------------- End of Access Configuration ------------
Once this is done, save the index.html file to a different file, such as olivier.html.
You will be able to provide a direct link to your user, and it will look like this : http://mytsplusserver.com/olivier.html
Locate the index.html file in C:\Program Files (x86)\TSplus\Clients\www
Edit the file with notepad and modify the user and password value here in bold characters, it should look like this :
// --------------- Access Configuration ---------------
var user = "Olivier"; // Login to use when connecting to the remote server (leave "" to use the login typed in this page)
var pass = "TSplus"; // Password to use when connecting to the remote server (leave "" to use the password typed in this page)
var domain = ""; // Domain to use when connecting to the remote server (leave "" to use the domain typed in this page)
var server = "127.0.0.1"; // Server to connect to (leave "" to use localhost and/or the server chosen in this page)
var port = ""; // Port to connect to (leave "" to use localhost and/or the port of the server chosen in this page)
var lang = "as_browser"; // Language to use
var serverhtml5 = "127.0.0.1"; // Server to connect to, when using HTML5 client
var porthtml5 = "3389"; // Port to connect to, when using HTML5 client
var cmdline = ""; // Optional text that will be put in the server's clipboard once connected
// --------------- End of Access Configuration ------------
Once this is done, save the index.html file to a different file, such as olivier.html.
You will be able to provide a direct link to your user, and it will look like this : http://mytsplusserver.com/olivier.html
Olivier
TSplus support team administrator

TSplus support team administrator

-
- Posts: 15
- Joined: Thu Jul 27, 2017 7:42 pm
Re: Automatic login in browser
Thanks for the tip!
But I think doing so is a little insecure because the credentials are saved directly on the page and can be easily accessed by anyone.
The way it's going to be to change all the documentation for the 'www' folder.
Again, thank you very much for the tip!
But I think doing so is a little insecure because the credentials are saved directly on the page and can be easily accessed by anyone.
The way it's going to be to change all the documentation for the 'www' folder.
Again, thank you very much for the tip!
Re: Automatic login in browser
Hello,
there is such option called singlelogon html5 client only (not usable for RemoteApp) which could enable you exact this kind of control.
Edit www\software\html5\settings.js > W.singlelogon = true; or use your own realm W.singlelogon = "your_own_realm";
Notice the logons/passes are not checked against rdp server so if misspelled you have to delete/edit it in your browsers settings by usual browsers native logon/pass store.
Alternatively if you don't want to use settings.js and use own realm per different user you could call the same variable passed as parameter
http(s)://your_server.com/software/html5.html?singlelogon=your_login
(your_login plays the role of realm here)
So in fact you could even extend index.html page to add automatically
"***html5.html?singlelogon=" + window.user;
for activation of this feature and so enforcing single logon.
there is such option called singlelogon html5 client only (not usable for RemoteApp) which could enable you exact this kind of control.
Edit www\software\html5\settings.js > W.singlelogon = true; or use your own realm W.singlelogon = "your_own_realm";
Notice the logons/passes are not checked against rdp server so if misspelled you have to delete/edit it in your browsers settings by usual browsers native logon/pass store.
Alternatively if you don't want to use settings.js and use own realm per different user you could call the same variable passed as parameter
http(s)://your_server.com/software/html5.html?singlelogon=your_login
(your_login plays the role of realm here)
So in fact you could even extend index.html page to add automatically
"***html5.html?singlelogon=" + window.user;
for activation of this feature and so enforcing single logon.
TSplus HTML5 and Java web engineer
-
- Posts: 15
- Joined: Thu Jul 27, 2017 7:42 pm
Re: Automatic login in browser
To make life easier for the user, and to make only one link available to everyone, I have changed the files in the "www" folder, making the User and Password saved in browser cookies!
For this I changed the JavaScript functions of the "C:\Program Files (x86)\TSplus\Clients\www\software\common.js" file.
For this I changed the JavaScript functions of the "C:\Program Files (x86)\TSplus\Clients\www\software\common.js" file.