You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/identity/Azure.Identity/README.md
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,6 @@ To authenticate in Visual Studio, select the **Tools** > **Options** menu to lau
31
31
32
32
![Visual Studio Account Selection][vs_login_image]
33
33
34
-
#### Authenticate via Visual Studio Code
35
-
36
-
Developers using Visual Studio Code can use the [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) to authenticate via the editor. Apps using `DefaultAzureCredential` or `VisualStudioCodeCredential` can then use this account to authenticate calls in their app when running locally.
37
-
38
-
It's a [known issue](https://github.com/Azure/azure-sdk-for-net/issues/30525) that `VisualStudioCodeCredential` doesn't work with [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) versions newer than **0.9.11**. A long-term fix to this problem is in progress. In the meantime, [authenticate via the Azure CLI](#authenticate-via-the-azure-cli).
39
-
40
34
#### Authenticate via the Azure CLI
41
35
42
36
Developers coding outside of an IDE can also use the [Azure CLI][azure_cli] to authenticate. Apps using `DefaultAzureCredential` or `AzureCliCredential` can then use this account to authenticate calls in their app when running locally.
@@ -199,7 +193,6 @@ Not all credentials require this configuration. Credentials that authenticate th
199
193
|[`DeviceCodeCredential`][ref_DeviceCodeCredential]|Interactively authenticates a user on devices with limited UI. |[Device code authentication](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-device-code)|
200
194
|[`InteractiveBrowserCredential`][ref_InteractiveBrowserCredential]|Interactively authenticates a user with the default system browser. |[OAuth2 authentication code](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-auth-code-flow)|
201
195
|[`OnBehalfOfCredential`][ref_OnBehalfOfCredential]|Propagates the delegated user identity and permissions through the request chain. |[On-behalf-of authentication](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-on-behalf-of-flow)|
202
-
|[`UsernamePasswordCredential`][ref_UsernamePasswordCredential]|**Deprecated** Authenticates a user with a username and password. |[Username + password authentication](https://learn.microsoft.com/entra/identity-platform/v2-oauth-ropc)|
203
196
204
197
### Authenticate via development tools
205
198
@@ -209,7 +202,6 @@ Not all credentials require this configuration. Credentials that authenticate th
209
202
|[`AzureDeveloperCliCredential`][ref_AzureDeveloperCliCredential]|Authenticates in a development environment with the Azure Developer CLI. |[Azure Developer CLI Reference](https://learn.microsoft.com/azure/developer/azure-developer-cli/reference)|
210
203
|[`AzurePowerShellCredential`][ref_AzurePowerShellCredential]|Authenticates in a development environment with the Azure PowerShell. |[Azure PowerShell authentication](https://learn.microsoft.com/powershell/azure/authenticate-azureps)|
211
204
|[`VisualStudioCredential`][ref_VisualStudioCredential]|Authenticates in a development environment with Visual Studio. |[Visual Studio configuration](https://learn.microsoft.com/dotnet/azure/configure-visual-studio)|
212
-
|[`VisualStudioCodeCredential`][ref_VisualStudioCodeCredential]|Authenticates as the user signed in to the Visual Studio Code Azure Account extension. |[VS Code Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account)|
213
205
214
206
> __Note:__ All credential implementations in the Azure Identity library are threadsafe, and a single credential instance can be used by multiple service clients.
Copy file name to clipboardExpand all lines: sdk/identity/Azure.Identity/TROUBLESHOOTING.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,7 @@ DefaultAzureCredentialOptions options = new
172
172
173
173
| Error Code | Issue | Mitigation |
174
174
|---|---|---|
175
+
|AADSTS50076|Multifactor authentication (MFA) is enabled on your Entra tenant, and the username + password flow is incompatible with MFA.|Use a different credential, per the guidance at [Planning for mandatory MFA: Client libraries](https://aka.ms/azsdk/identity/mfa).|
175
176
|AADSTS50126|The provided username or password is invalid|Ensure the `username` and `password` provided when constructing the credential are valid.|
0 commit comments