public void GetIdentity(IPluginHost host, IProject project) { Console.WriteLine("The following options are available:"); Console.WriteLine("[0]: Username and password (HTTPS)"); Console.WriteLine("[1]: Private key (SSH)"); int selection = -1; while (selection != 0) { Console.Write("> "); var input = Console.ReadLine(); int.TryParse(input, out selection); if (selection == 1) Console.WriteLine("Not currently supported"); } if (selection == 0) { Console.Write("Username: "******"Password: "******"GitProvider.Username"] = username; project["GitProvider.Password"] = password; Credentials = new UsernamePasswordCredentialsProvider(username, password); } }