Skip to content

Commit 657d136

Browse files
committed
github: make user/pass the default auth mode over TTY
Make username/password authentication the default mode when presented with the options over the TTY. This is because we still don't have a whitelisted OAuth application and any OAuth tokens will have restrictions when used for org-owned repos.
1 parent 0f6f715 commit 657d136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/GitHub/GitHubAuthentication.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public async Task<AuthenticationPromptResult> GetAuthenticationAsync(Uri targetU
123123
var menuTitle = $"Select an authentication method for '{targetUri}'";
124124
var menu = new TerminalMenu(Context.Terminal, menuTitle)
125125
{
126-
new TerminalMenuItem(1, "Web browser", true),
127-
new TerminalMenuItem(2, "Username/password")
126+
new TerminalMenuItem(1, "Web browser"),
127+
new TerminalMenuItem(2, "Username/password", true)
128128
};
129129

130130
int option = menu.Show();

0 commit comments

Comments
 (0)