Skip to content

Commit 735927f

Browse files
committed
basic: respect new GUI prompt enabled setting
1 parent b598446 commit 735927f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/Core/Authentication/BasicAuthentication.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public ICredential GetCredentials(string resource, string userName)
3232
ThrowIfUserInteractionDisabled();
3333

3434
// TODO: we only support system GUI prompts on Windows currently
35-
if (Context.SessionManager.IsDesktopSession && PlatformUtils.IsWindows())
35+
if (Context.Settings.IsGuiPromptsEnabled && Context.SessionManager.IsDesktopSession &&
36+
PlatformUtils.IsWindows())
3637
{
3738
return GetCredentialsByUi(resource, userName);
3839
}

0 commit comments

Comments
 (0)