Idira Identity: How to use the Order box for custom Browser Extension apps
Question
In the advanced section of custom Browser Extension app properties, there is a section called "Order" with the following info tag:
This optional field is for advanced users only.
Use this field to specify the order of login if it is not username, password and submit
How is this section used?
Environment
Identity App Access Service
Answer
The "Order" box is used for login pages where the username and password fields may need to be filled in a special order, or if the username and password forms are located on separate pages (e.g. The username is entered first, then a second page is loaded with the password box).
Syntax Examples:
The Order is constructed as a syntax of an array of commands:
- Example 1:
- Load the login page.
- Fill in the username, password and additional login ID boxes (as defined in the app properties).
- Click the submit button, or simulate the "Enter" key (as defined in the app properties).
- (This is the default setting)
[ ["ups"] ]
- Example 2:
- Load the login page.
- Fill in the username box.
- Click the button with the CSS selector value of "button#idOfNextPage".
- Wait for the next page to load.
- Fill in the password box on the second page.
- Click the submit button.
[ ["fill", "username"], ["click", "button#idOfNextPage"], ["waitForNewPage"], ["fill", "password"], ["submit"] ]
- Example 3:
- Load the login page.
- Fill in the username box.
- Wait 0.5 seconds.
- Fill in the password box and simulate hitting the "Enter" key.
["fill", "username"], ["sleep", 500], ["fillEnter", "password"] ]
- Example 4: Iframe
- Go to the website you need to capture. We will call the URL URL_A.
- In Firefox, on the page, right click on the Username box > click "This Frame" > click "Open Frame in New Tab" > copy the URL it has taken you to. We will call it URL_B.
- Capture the App with IBE using URL_B
- In the Cloud Admin Portal, under the new App, make sure to replace the App URL under Application Settings from URL_B to URL_A
- Modify URL_A & URL_B. You will need to replace all dot ".", "=", "?", "-" to use 2 backslashes before them: "\\.", "\\=", "\\?", "\\-". This will give you URL_A_modified & URL_B_modified.
- Add the "Order" box with the following string, replacing URL_A_modified & URL_B_modified
[
["iframe",{"whitelist":"^https://www\\.w3schools\\.com/html/default\\.asp$","blacklist":"^https://www\\.w3schools\\.com/html/html_iframe\\.asp$"}],
["ups"]
]
Notes:
- The examples above have been indented for clarity, when entering them into the app configuration, they will be entered all on one line, e.g.:
- [["fill", "username"], ["sleep", 500], ["fillEnter", "password"]]
- If there are any special characters like ":" in the CSS selector sections in the Order field, they will need to be double-escaped by putting a double backslash "\\" in front of the characters. For example:
- [["click", "input#idLoginForm\\:idLoginOption\\:1"],["waitForNewPage"],["fill", "username"],["fillEnter", "password"],["ups"]]
- (If copying the selector ID from elements already detected by the CBE Infinite App Capture function, then there will already be one backslash in front special characters - these will still need the second backslash so that they get escaped twice in Order.)
For additional help on determining the CSS selector of an element in a web page, see the following article: KB-5078: How to use Infinite Apps on login pages with dynamic input tag IDs
Additional Commands:
| Command Entry | Action Performed |
|---|---|
|
["click", "button#CSS_selector_id"] |
Do a mouse click on the element defined in the selector field. |
|
["waitForNewPage"] |
Wait for the next page to finish loading |
|
["goto", "http://www.CyberArk.com"] |
Go to the specified URL |
|
["ups "] |
|
|
["sleep"] |
Wait for 80 milliseconds (default value) |
|
["sleep", ###] |
Wait for the specified amount of time in milliseconds. |
|
["fill", "field-name"] |
Fill in the defined box with the value defined in the app configuration. Accepted values of field-name are: (Case-sensitive)
These labels correspond to the "User Name", "Password" and "Additional Login Field" boxes (as captured in the Advanced section of the app properties). |
|
["fillEnter", "field-name"] |
Same as "fill", only after entering the defined value, it will then simulate pressing the "Enter" key on the webpage. |
|
["submit"] |
Disable auto-complete of the form and click the Submit button (as captured in the Advanced section of the app properties). |
|
["waitForNewPage", {"httpStatus": "401"}] |
Wait for the next page(s) to load with the given HTTP status code. This is useful for pages with URL redirects. |
|
["header401"] |
Fill HTTP BASIC/NTLM username password information when prompted. |
|
[["iframe",{"whitelist":"^URL_B_modified$", "blacklist":"^URL_A_modified$"}] |
"Whitelist" is for the page being displayed within the iframe, Blacklist is for the page that contains the iframe Modify URL_A & URL_B. You will need to replace all dot ".", "=", "?", "-" to use 2 backslashes before them: "\\.", "\\=", "\\?", "\\-". This will give you URL_A_modified & URL_B_modified. |
For additional assistance with these configurations, please contact Idira Identity Support and provide the following information:
- URL of the login page.
- Test credentials for logging into the target site (If possible)
- An app export of the configured web app so far:
- Log into the Admin Portal and select Apps from the sidebar
- Right-click on the target app being configured
- Select "Export"
- Send in the exported zip file.
Additional Information
Details
Question:In the advanced section of custom Browser Extension app properties, there is a section called "Order" with the following info tag:
Use this field to specify the order of login if it is not username, password and submit
How is this section used?
Answer:
The "Order" box is used for login pages where the username and password fields may need to be filled in a special order, or if the username and password forms are located on separate pages (e.g. The username is entered first, then a second page is loaded with the password box).
Syntax Examples:
The Order is constructed as a syntax of an array of commands:
- Example 1:
- Load the login page.
- Fill in the username, password and additional login ID boxes (as defined in the app properties).
- Click the submit button, or simulate the "Enter" key (as defined in the app properties).
- (This is the default setting)
[ ["ups"] ]
- Example 2:
- Load the login page.
- Fill in the username box.
- Click the button with the CSS selector value of "button#idOfNextPage".
- Wait for the next page to load.
- Fill in the password box on the second page.
- Click the submit button.
[ ["fill", "username"], ["click", "button#idOfNextPage"], ["waitForNewPage"], ["fill", "password"], ["submit"] ]
- Example 3:
- Load the login page.
- Fill in the username box.
- Wait 0.5 seconds.
- Fill in the password box and simulate hitting the "Enter" key.
["fill", "username"], ["sleep", 500], ["fillEnter", "password"] ]
- Example 4: Iframe
- Go to the website you need to capture. We will call the URL URL_A.
- In Firefox, on the page, right click on the Username box > click "This Frame" > click "Open Frame in New Tab" > copy the URL it has taken you to. We will call it URL_B.
- Capture the App with IBE using URL_B
- In the Cloud Admin Portal, under the new App, make sure to replace the App URL under Application Settings from URL_B to URL_A
- Modify URL_A & URL_B. You will need to replace all dot ".", "=", "?", "-" to use 2 backslashes before them: "\\.", "\\=", "\\?", "\\-". This will give you URL_A_modified & URL_B_modified.
- Add the "Order" box with the following string, replacing URL_A_modified & URL_B_modified
[
["iframe","whitelist":"^https://www.w3schools\\.com/html/default\\.asp$","blacklist":"^https://www.w3schools\\.com/html/html_iframe\\.asp$"}],
["ups"]
]
Notes:
- The examples above have been indented for clarity, when entering them into the app configuration, they will be entered all on one line, e.g.:
- [["fill", "username"], ["sleep", 500], ["fillEnter", "password"]]
- If there are any special characters like ":" in the CSS selector sections in the Order field, they will need to be double-escaped by putting a double backslash "\\" in front of the characters. For example:
- [["click", "input#idLoginForm\\:idLoginOption\\:1"],["waitForNewPage"],["fill", "username"],["fillEnter", "password"],["ups"]]
- (If copying the selector ID from elements already detected by the CBE Infinite App Capture function, then there will already be one backslash in front special characters - these will still need the second backslash so that they get escaped twice in Order.)
For additional help on determining the CSS selector of an element in a web page, see the following article: KB-5078: How to use Infinite Apps on login pages with dynamic input tag IDs
Additional Commands:
| Command Entry | Action Performed |
|---|---|
|
["click", "button#CSS_selector_id"] |
Do a mouse click on the element defined in the selector field. |
|
["waitForNewPage"] |
Wait for the next page to finish loading |
|
["goto", "http://www.CyberArk.com"] |
Go to the specified URL |
|
["ups "] |
|
|
["sleep"] |
Wait for 80 milliseconds (default value) |
|
["sleep", ###] |
Wait for the specified amount of time in milliseconds. |
|
["fill", "field-name"] |
Fill in the defined box with the value defined in the app configuration. Accepted values of field-name are: (Case-sensitive)
These labels correspond to the "User Name", "Password" and "Additional Login Field" boxes (as captured in the Advanced section of the app properties). |
|
["fillEnter", "field-name"] |
Same as "fill", only after entering the defined value, it will then simulate pressing the "Enter" key on the webpage. |
|
["submit"] |
Disable auto-complete of the form and click the Submit button (as captured in the Advanced section of the app properties). |
|
["waitForNewPage", {"httpStatus": "401"}] |
Wait for the next page(s) to load with the given HTTP status code. This is useful for pages with URL redirects. |
|
["header401"] |
Fill HTTP BASIC/NTLM username password information when prompted. |
|
[["iframe",{"whitelist":"^URL_B_modified$", "blacklist":"^URL_A_modified$"}] |
"Whitelist" is for the page being displayed within the iframe, Blacklist is for the page that contains the iframe Modify URL_A & URL_B. You will need to replace all dot ".", "=", "?", "-" to use 2 backslashes before them: "\\.", "\\=", "\\?", "\\-". This will give you URL_A_modified & URL_B_modified. |
-
URL of the login page.
-
Test credentials for logging into the target site (If possible)
-
An app export of the configured web app so far:
-
Log into the Admin Portal and select Apps from the sidebar
-
Right-click on the target app being configured
-
Select "Export"
-
Send in the exported zip file.
-