LEAPWORK can be set up to log in on the user’s behalf. Users can also start testing single-sign-on between Windows and any other application that reuses the same login credentials.
This means a user can now execute automation on any machine in an incredibly secure and robust manner.
To enable this behavior, building blocks to ‘login’, ‘logout’ and ‘lock’ have been added in the flows as per requirement, below is an example flow where it login block will log in to a remote Agent using give credentials and then perform required automation task and then logout from the agent when the task is completed.
Agent settings also include an option to either manually or automatically log in using a Windows account, and optionally lock sessions automatically after disconnecting from Agents:
The login flow can be used as the first case in the run list or at the beginning of each case if required. The scheduler executes cases in the same order as they are shown in the run list top to down. You can change cases order in the run list by dragging and dropping and then editing and saving your run list.
Login/logout blocks require latest LEAPWORK to be installed here are few preconditions which need to be met to be able to this feature
- Ensure you have Windows Credential Provider as an update installed in your system.
- Make sure you choose the Windows login (recommended) option while installing LEPWORK Agent else it will not work.
- Make sure no one is connected to Agent machine via a Remote Desktop Connection.
- Restart the machine after installing LEAPWORK.
This login and logout functionality works even with machines that have just been started or rebooted, without any prior user sessions, from Windows 7 SP1 and onwards. This makes it very easy to automate tasks on virtual machines and automate testing of complex, data-driven single-sign-on (SSO) scenarios.
Note that the functionality is based on a Windows “credentials provider” which does not circumvent any security measures in Windows; it simply lets LEAPWORK interact directly with the login/logout security feature built-in to Windows.