There is no standard way to automatically login with credentials to a website. Quite simply, it’s complicated. Whilst it is possible to automatically fill in a username and password field, then submit, there are many variables involved.
For example, is the input box named “username” or “user_name” or maybe “email”? Are you redirected to a sign in page when unauthenticated or do you have to click a link? Is the form visible? or maybe you need to click a drop down menu to see it.
Then there are complexities to do with single sign on, Windows authentication / NTLM, two factor authentication etc.
There are however a few tricks we can use to login to websites depending on the situation, we’ll go over a few of them here
Standard Website Login
When you attempt to access a webpage and you are directed to a standard login page, the easiest solution is to simply open the page with the software and sign in as normal. The authenticated browser session will persist to all rotations on that machine. As the pages are being reloaded every few minutes during rotation the sessions are kept active.
- From the VuePilot software on your machine that is connected to your display screens (not from from the online dashboard), open the rotations panel
- Enter the URL of the dashboard that requires authentication into one of the URL boxes, then click the “Preview” icon next to it.
- This will open the URL in a VuePilot window, login to the website as normal and then simply close the preview window once your done.
Much like how your regular browser works, VuePilot will retain that authorization when your rotations start as the preview window and the normal rotation windows share the same resources.
For a demonstration, please see our walkthrough video here (at 6:21) https://youtu.be/6-SicWmu3GA?t=381
An example of a standard login page
Automatic Website Login With Smart Pages
It is possible to confgure a smart page app to perform the login of a standard website login by writing a small amount of code to detect the username and password input boxes on the page and to enter the login credentials and submit the form after the page loads.
WARNING: Anyone who has access to your VuePilot account will be able to see the username and password within the smart page code. We only recommend you use this method for internal services and that you create a low privilege account to use. Do not use administrator credentials when using this method
See the examples section under the Smart Pages documentation for an example of performing an automatic login
HTTP Basic Authentication
This form of website authentication is not very common anymore however there are some websites, mostly web based tools used within internal networks that may still use it.
You can tell if you are seeing a “HTTP Basic Authentication” prompt rather than a standard website login because it will generally appear as a pop up dialog window that looks more like an operating system dialog than a website dialog.
You can login to websites that prompt for HTTP Basic Authentication by supplying the username and password through the URL. The VuePilot software will intercept the HTTP Authentication handshake and pass through the credentials supplied through the URL to the server.
WARNING: Anyone who has access to your VuePilot account will be able to see the username and password within the URL string. We only recommend you use this method for internal services and that you create a low privilege account to use. Do not use administrator credentials when using this method
- From the rotations panel, add a new URL row and enter the URL of the page you wish to view that requires HTTP Basic Authentication
- Click the preview button, you should see a authentication error page. Close this window
- Add the URL parameters user and pass with the username and password to your URL using standard HTTP conventions with regards to ? and &.
Example, if your URL is https://myapp/dashboard
you would enter https://myapp/dashboard?user=john&[email protected]
If your URL is https://myapp/dashboard?id=5
then you would enter https://myapp/dashboard?id=5&user=john&[email protected]
- Hit save, and then hit preview to test
- If you see a blank white page, then you’ve entered the wrong credentials, otherwise you should see your authenticated page
An example of a HTTP Basic Authentication modal
Remote Access Options
Many customers have simply opted to install a remote desktop tool such as TightVNC or RealVNC which enables them to remotely login to a machine and perform the login without needing to physically attach a keyboard and screen to the host machine.