microsoft / vscode-azure-account

Common Azure Login extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account
Other
138 stars 131 forks source link

VSCode doesn't work with 2FA #907

Closed bbaassssiiee closed 9 months ago

bbaassssiiee commented 1 year ago

Does this occur consistently? Repro steps:

  1. Login to Azure shell with corporate account
  2. Provide username & password

Action: azure-account.loginToCloud Error type: Error Error Message: Get redacted:key returned http error: 400 and server response: {"error":"interaction_required","error_description":"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access 'redacted:id'. Trace ID: redacted:id Correlation ID: redacted:id Timestamp: redacted:id redacted:id30Z","error_codes":[redacted:id],"timestamp":"redacted:id redacted:id30Z","trace_id":"redacted:id","correlation_id":"redacted:id","error_uri":"redacted:url

Version: 0.11.6 OS: win32 OS Release: 10.0.22621 Product: Visual Studio Code Product Version: 1.84.2 Language: en

Call Stack ``` Logger.createError extension.bundle.js:2:893444 extension.bundle.js:2:906329extension.bundle.js:2:906329 ```