HTML Development
HTML Best Practices
Using HTML Websites that Require Logins
4min
if you want to use websites that require credentials some urls allow you to add the login information inline with the url for example http //login\ password\@myserver com some urls require that the username and password be added to the end of the url for example http //www mywebsite com?username=test\&password=test you can whitelist the player ip so that a login is not required for the website you can use locally installed cert files that can be applied to a player using a plugin for authentication you can use a html page to log into another page by modifying the first page to match the form needed by the website usually, this means that you will need to get the name of the login form as well as the ids used for the login name field and the password field note that some pages can be logged into just using an iframe some require using javascript injection some pages are complex with multiple dialogs and timeouts example to implement automatic login for web pages in a presentation using html and javascript, download this example https //archbee doc uploads s3 amazonaws com/0prk6so2dy9ldu77jb8d1/gz9og9u42sgoev nm99tm pageloginexample zip to use the example add the html page to your brightauthor\ connected or cms presentation configure the login details in the config section of the javascript const config = { targeturl 'your target url', credentials { username 'your username', password 'your password' } }; update the form action url to match your login endpoint \<form id="loginform" method="post" action="your login url"> the script will automatically fill in the credentials when the page loads submit the login form redirect to your target url after successful login this example assumes a basic form based authentication you may need to modify the javascript to match your specific login requirements security consideration storing credentials in the html/javascript files means they could be accessed if someone has physical access to the player with javascript console enabled for most internal network deployments, this presents an acceptable level of risk