From da0a13ccdf90517519a5fcc42a0cdea8851b4259 Mon Sep 17 00:00:00 2001 From: qianjinshen Date: Tue, 22 Sep 2020 15:39:51 +0800 Subject: [PATCH] fixed service principal login issue. --- .../src/com/microsoft/azuretools/ijidea/ui/SignInWindow.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/SignInWindow.java b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/SignInWindow.java index ea7b805b5ec..d78d6346c1c 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/SignInWindow.java +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azuretools/ijidea/ui/SignInWindow.java @@ -177,8 +177,8 @@ protected JComponent createCenterPanel() { protected void doOKAction() { authMethodDetailsResult = new AuthMethodDetails(); if (automatedRadioButton.isSelected()) { // automated - final Map properties = - Collections.singletonMap(AZURE_ENVIRONMENT, CommonSettings.getEnvironment().getName()); + final Map properties = new HashMap<>(); + properties.put(AZURE_ENVIRONMENT, CommonSettings.getEnvironment().getName()); properties.putAll(signInSPProp); EventUtil.logEvent(EventType.info, ACCOUNT, SIGNIN, properties, null); String authPath = authFileTextField.getText();