Customize – RPA Credentials Storage

Robot authentication credentials are stored in Windows Credential Manager (Vault). Change this default behavior to a customer provided Credential Manager or Vault.

 

To customize the default behavior:

  1. Implement the below interface which is a part of “Utilities.Interfaces.dll” by entering a customer specific implementation.
     

    public interface IRoboCredManager

    {

    /// <summary>

    /// Save credentials

    /// </summary>

    /// <param name=”userName”>Username</param>

    /// <param name=”password”>Password</param>

    /// <param name=”targetName”>Robot Id</param>

    /// <param name=”authType”>Authentication type</param>

    /// <returns>

    /// True, if successful

    /// </returns>

    bool SaveCredentials(string userName, string password, string targetName, string authType);

    /// <summary>

    /// Fetch credentials

    /// </summary>

    /// <param name=”targetName”>Robot Id</param>

    /// <returns>Dictionary containing following keys

    /// “UserName”, “Password” and “AuthenticationType”

    /// </returns>

    Dictionary<string, string> GetCredentials(string targetName);

  2. Modify the below key from RoboSE.exe.config and RPAAgentView.exe.config by entering a new DLL with class name which has the new implementation of the above interface.

    <addkey=CredentialManagervalue=ExtendedRoboCredManager.dll,RoboCredManagerExtended/>

  3. Stop & release all the agents/robots. Setup the Agent again and sign-in in the robots. Save the applications credentials. Re-start the agents/robots.