// This version allows custom base URL. baseUrl could be set to null or "" for the default value. public static Vault Open(ClientInfoBrowser clientInfo, string baseUrl, IUi ui, ISecureStorage storage) { using var transport = new RestTransport(); return(new Vault(Client.OpenVaultBrowser(username: clientInfo.Username, password: clientInfo.Password, deviceId: clientInfo.DeviceId, baseUrl: baseUrl, ui: ui, storage: storage, transport: transport))); }
// The main entry point. Use this function to open the vault in the browser mode. In // this the login process is interactive when 2FA is enabled. This is an old mode // that might potentially trigger a captcha. Captcha solving is not supported. // There's no way to complete a login and get the vault if the captcha is triggered. // Use the CLI/API mode. This mode requires a different type of credentials. // The device ID should be unique to each installation, but it should not be new on // every run. A new random device ID should be generated with GenerateRandomDeviceId // on the first run and reused later on. public static Vault Open(ClientInfoBrowser clientInfo, IUi ui, ISecureStorage storage) { return(Open(clientInfo, null, ui, storage)); }