How to Web Based Connection Component - Auto Logon HTTPS without web forms

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
2 min read
L7 Applicator
No ratings
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.

Steps

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:[email protected]”

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

ka32J00000056xQQAQ__eid=ka32J00000056xQ&feoid=00N2J000009R3kv&refid=0EM2J000003JuFs.png

2.Paste Connection Component

ka32J00000056xQQAQ__eid=ka32J00000056xQ&feoid=00N2J000009R3kv&refid=0EM2J000003JuFx.png

3. Rename the Connection Component (Good Practice is to include the name of the website in the Name i.e Polycom Admin)

ka32J00000056xQQAQ__eid=ka32J00000056xQ&feoid=00N2J000009R3kv&refid=0EM2J000003JuG2.png

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)

ka32J00000056xQQAQ__eid=ka32J00000056xQ&feoid=00N2J000009R3kv&refid=0EM2J000003JuGC.png

NOTE: The ClientInvokeType must be CommandLine

5. Save all Changes

6. Navigate to Platform Management

7. add new Connection Component under the UI & WorkFlows

ka32J00000056xQQAQ__eid=ka32J00000056xQ&feoid=00N2J000009R3kv&refid=0EM2J000003JuGH.png

 

ka32J00000056xQQAQ__eid=ka32J00000056xQ&feoid=00N2J000009R3kv&refid=0EM2J000003JuGM.png

 

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

Rate this article: