Reference Guide
...
Auto-Login for Kron PAM HTTP P...
Auto Login Configuration
to use the auto login feature on individual webpages defined as devices in kron pam navigate to devices > element type click the search button and select the related webpage element created earlier click the options menu to edit the properties of the element type then click the edit element type select the association tags as http then click the next button fill in the below parameters element type property explanation auto login password matcher template this parameter is used to find and replace the password with the global password auto login post url web application/site login url regex can be used to define the url property example /login/device based/regular/login/ auto login username matcher template this parameter is used to find and replace the username with the global username bypass domain web applications/sites can use multiple domains for images, chats, emails, etc if you do not add these domains to the whitelist, the webpage will not be displayed as is some images, videos, etc will be blocked because of the improper https certificate to better understand these element properties, a facebook login can be used as an example open facebook com on a web browser right click the screen and click inspect click the networ k tab at the top of the screen on the facebook login screen, insert a test email and password and click login facebook will return an error because the test credentials are incorrect look at the inspection code to find the test email and password check the parameter’s name and configure it in the element type on the left column, there are post urls these should be configured in the auto login post url for facebook it is login so the auto login post url parameter will be defined as ' /login ' regex characters are needed since there could be other sub pages, therefore, the post url always ends with “ “ now look for the test username and password in the inspection code post url the test username and test password are posted under specific containers in the login url in facebook, these parameters are email email and pass pass these parameters will be defined in login username matcher template as email email =$$value$$(&|$), and auto login password matcher template as pass pass =$$value$$(&|$) so, these parameters will be used in the element type if these parameters are different, (highlighted with red red ) “pass” and “email” parts of the parameter definition should be changed as needed the other part, “=$$value$$(&|$)”, should remain the same in the definition to apply all the changes made in the element type, the http proxy needs to be restarted restart the http proxy from the kron pam cli establish an ssh connection to kron pam as root and run the command sudo systemctl restart pam http the last element type property is the bypass domain these are external domains that the main webpage loads some data and elements from the firefox web browser is used to find the bypass domains open the facebook webpage by using an http proxy on firefox the web page will be loaded incorrectly frames can be different, photos will not be shown, etc this means that some information or data coming from another domain is blocked since they are not allowed these domains are what we call bypass domains right click the screen and click inspect click the network tab and check the domain column any domains other than facebook com need to be added as bypass domains this step should be repeated after the login page or any other page as well, to find all bypass domains once all the bypass domains are added to http bypass domain , another restart is required using the command sudo systemctl restart pam http all of these parameters need to be configured in the element type property as illustrated in the screenshot below the auto login mechanism is triggered when the username/password field is empty or an auto login keyword text is entered some of the websites allow the username/password field prompt to be empty and the login button can be clicked, while other websites do not allow it