Getting Started Guide
...
HTTP Proxy
Auto-Login Feature for Kron PA...
Example Scenario
2min
To better understand these element properties, let’s inspect an example of a Facebook login:
- Open http://facebook.com in a web browser, right-click on the screen, and click Inspect.
- Click the Network tab on the top of the screen. Then, on the Facebook Login screen, enter a test e-mail and test password and then click Login. Facebook will give an error because the test credentials are incorrect.
- Now let’s look in the inspection code to find the test e-mail 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 http.auto.login.post.url for Facebook. It is login so the http.auto.login.post.url parameter will be defined as /login.*. The regex characters are needed since there could be other sub-pages. Therefore, the post URL always finishes with “.*”.
- Now, look for the test username and test password in the inspection code post URL. Test username and test password are posted under specific containers in the login URL. In Facebook, these parameters are email and pass. These parameters will be defined in the http.auto.login.username.matcher.template as email=$$value$$(&|$) and http.auto.login.password.matcher.template as pass=$$value$$(&|$). These parameters will be used in the Element type. If these parameters are different, only the red pass and email part of the parameter definition should be changed. The other part, “=$$value$$(&|$)” should remain the same in the definition.
- To apply all changes made in the element type, you need to restart the HTTP Proxy. Restart the HTTP Proxy from the Kron PAM CLI. Make an SSH connection to Kron PAM as root and run the command below. systemctl restart http_prox
- The last element type property is http.bypass.domain. These are external domains from which the main web page loads some data and elements. Use the Firefox browser to find the bypass domains. Open the Facebook web page by using an HTTP Proxy on Firefox. The web page will be loaded incorrectly. Frames can be different, photos will not be shown, etc. It means that some information or data coming from another domain is blocked because they are not allowed. These domains are what we call bypass domains.
- Right-click on the screen and click Inspect. Then click the Network tab and check the Domain column. If there are any other domains than http://facebook.com, you need to add these domains as bypass domains. This step should be repeated after the login page or any other page to find all bypass domains.
Test credential parameter name in Facebook web page inspection codes
Bypass domains in Facebook main page
- After adding all the bypass domains to http.bypass.domain, you must restart again with the command below: systemctl restart http_prox
- Configure all of these parameters in the Element Type Property as in the following figure.