How to Web Based Connection Component - Auto Logon HTTPS without web forms
Objective
Many websites hosted from various servers, and devices use Basic Authentication method, making web forms unusable for web based connection components. In order to create a connection component you may have to invoke the web browser and URL address with credentials embedded into the url. This document displays the symptoms of a non web form based web site, the reasons for the issue and the steps necessary to create a working connection component. Since all web servers are different this may not satisfy every situation but has proven successful on the majority of the tests attempted.
Procedure
To Automate the connection the user can simply embed the credentials into the URL address that is targeted. The syntax is to embed username and password separated by a colon (:) and followed by the at symbol (@) in between the protocol [http(s)://] and the url address.
EXAMPLE: https://<username>:<password>@target_url.com/
This can be executed on the command line by calling the browser exe followed by the modified URL
EXAMPLE:
C:\Windows\system32>"c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito “http://admin:admin@192.168.200.21”
Before creating a Connection, Component test the command line method from the PSM servers to ensure that web site you are trying to automate actually works.
Due to the variance of web servers embedded into devices, they may behave differently and issue different error codes.
Creating the Connection Component
1.Copy PSM-SQLServerMgmtStudio or other Command Line based Connection Component
NOT WEB FORM OR WEB APP
2.Paste Connection Component
3. Rename the Connection Component (Good Practice is to include the name of the website in the Name i.e Polycom Admin)
4.Goto Target Settings for new Connection Component and Change *ClientApp to start Browser EXE with URL (Exactly as tested on the command line)
(NOTE: Ensure that exe is surrounded in quotes as well as the url is also surrounded in quotes!)
(NOTE: for Chrome add the --incognito switch or IE.exe add the -inprivate switch)
NOTE: The ClientInvokeType must be CommandLine
5. Save all Changes
6. Navigate to Platform Management
7. add new Connection Component under the UI & WorkFlows
Updates:
- Use Domain Credentials - To use domain credentials format the username:password in url as such
DOMAIN%5Cusername:password – For testing
ConnectionComponent – {LogonTo}%5C{username}:{password}
- No Credentials IF web site requires no credentials
Remove the username:password fields from the URL address
No Component Logs are created if PSM Trace levels are turned off