Is it possible to create a custom script for a Technical Definition that will prompt the user for a PIN or token response each time the window is detected?
To create a Technical Definition with a custom script that will prompt for a PIN or token response, please follow the below video or included steps:
Steps used in the video:
To create a new Technical Definition
1.Open up Enterprise SSO Studio
2. Log in with our credentials and click “OK”
3. Expand our structure to locate where we want the Technical Definition to be created
4. Right click where we want to create our Technical Definition and click “New technical definition”
5. Give the Technical Definition a distinctive name (TestApplication) and click Ok
6. Expand the location to view the new Technical Definition
7. The Technical Definition has now been created
To create a new Window
1. Right click on the newTechnical Definition and click “New Window”
2. Enter in a descriptive Window Name (Login)
3. And because this is a custom script we will select the Window Type option “Custom Script”
What do you want to Single Sign into?
1. Before we can customize the window, we need to open the application page where we want the window to detect. Open the application now
2. Once open, select the “Detection” tab back in the Window Properties box
3. Click and drag the “Bulls eye” icon over into our application window
Now it is time to create our Custom Script:
1. Next click on the “Actions” tab of the Windows Properties box
2. Click on the “Script Editor” button
3. Notice that the Custom Script Editor is now open
4. Select some actions for the script to perform by clicking the icon in the top left hand corner of the Custom Script Editor window
5. We want to send the Username and Password so let’s select the “Send SSO Parameter” twice
6. The first one will be the Identifier, or in this case Username.
7. For the Target select the “Send to the Control” radio button
8. Drag and drop the “Bulls Eye” icon over the “Username” login text box
9. The second Send SSO option will be for our “Password” parameter
10. As before, select “Sent to Control” and drag the control over to the “Password” text box
11. Next we want to prompt the user to enter in the PIN or Token response each time the application loads so we will add the component “Input box”
12. Give the label the following title “Please enter a valid PIN response:”
13. We don’t want users to enter an empty token response so add a “Compare” option with an empty string
14. So no empty fields appear to continue with authentication lets create two “Labels”. One called “noPin” and one called “validPin”
15. For the Label “noPin” move it above the input box so that if a user does not enter a pin they are asked to re enter the PIN response.
16. Create two “GotoLabels” and move both directly under “compare”
17. For the first “GotoLabel” select “noPin” and click the “Execute only if True” condition
18. For the second “GotoLabel” select “validPin” and click the “Execute only if False” condition
19. Under the label “validPin” let’s add the “Send Key/String” option to send our Buffer with the PIN value to the PIN field
20. Add a “Click” option to click the Login button
21. And add a “Return” option to let the application know that SSO is Done
22. Click Ok to save the “Custom Script Editor”
23. Click “Ok” to save the Window Properties
Now test the window to ensure that it works
1. To test lets right click on the Technical Definition and click “Add to test list”
2. Right click on or Window and click “Test”
3. If the application is still open on the login page you should now be prompted to enter a username and password. Let’s enter a username and password:
4. Notice how the user is unable to continue without entering a field into the PIN prompt. Lets enter a PIN and click “Ok”
5. The test window should now finalize the authentication by triggering the login process as defined in the script
6. Now that SSO has been completed the window is now inactive and SSO is complete
© 2025 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center