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/CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
# Release History
2
2
3
-
## 1.14.0 (2025-05-12)
3
+
## 1.14.0 (2025-05-13)
4
4
5
5
### Other Changes
6
6
7
7
- Removed references to `Username`, `Password`, `AZURE_USERNAME`, and `AZURE_PASSWORD` in XML comments from `EnvironmentCredentialOptions` and `EnvironmentCredential` due to lack of MFA support. See [MFA enforcement details](https://aka.ms/azsdk/identity/mfa).
8
8
- Marked `AZURE_USERNAME` and `AZURE_PASSWORD` as obsolete due to lack of MFA support. See [MFA enforcement details](https://aka.ms/azsdk/identity/mfa).
9
+
- Added support for the `AZURE_TOKEN_CREDENTIALS` environment variable to `DefaultAzureCredential`, which allows for choosing between 'deployed service' and 'developer tools' credentials. Valid values are 'dev' for developer tools and 'prod' for deployed service.
publicconststringMiSourceNoUserAssignedIdentityMessage="User-assigned managed identity is not supported by the detected managed identity environment.";
39
39
publicconststringMiSeviceFabricNoUserAssignedIdentityMessage="Specifying a clientId or resourceId is not supported by the Service Fabric managed identity environment. The managed identity configuration is determined by the Service Fabric cluster resource configuration. See https://aka.ms/servicefabricmi for more information.";
thrownewInvalidOperationException($"Invalid value for environment variable AZURE_TOKEN_CREDENTIALS: {credentialSelection}. Valid values are '{Constants.DevCredentials}' or '{Constants.ProdCredentials}'.");
45
39
}
46
40
47
-
if(!Options.ExcludeWorkloadIdentityCredential)
41
+
if(_useDefaultCredentialChain)
48
42
{
49
-
chain.Add(CreateWorkloadIdentityCredential());
43
+
if(_useDevCredentials)
44
+
{
45
+
return
46
+
[
47
+
CreateVisualStudioCredential(),
48
+
CreateAzureCliCredential(),
49
+
CreateAzurePowerShellCredential(),
50
+
CreateAzureDeveloperCliCredential()
51
+
];
52
+
}
53
+
elseif(_useProdCredentials)
54
+
{
55
+
return
56
+
[
57
+
CreateEnvironmentCredential(),
58
+
CreateWorkloadIdentityCredential(),
59
+
CreateManagedIdentityCredential()
60
+
];
61
+
}
62
+
returns_defaultCredentialChain;
50
63
}
51
64
52
-
if(!Options.ExcludeManagedIdentityCredential)
53
-
{
54
-
chain.Add(CreateManagedIdentityCredential());
55
-
}
65
+
List<TokenCredential>chain=new(10);
56
66
57
-
if(!Options.ExcludeSharedTokenCacheCredential)
67
+
if(!_useDevCredentials)
58
68
{
59
-
chain.Add(CreateSharedTokenCacheCredential());
69
+
if(!Options.ExcludeEnvironmentCredential)
70
+
{
71
+
chain.Add(CreateEnvironmentCredential());
72
+
}
73
+
74
+
if(!Options.ExcludeWorkloadIdentityCredential)
75
+
{
76
+
chain.Add(CreateWorkloadIdentityCredential());
77
+
}
78
+
79
+
if(!Options.ExcludeManagedIdentityCredential)
80
+
{
81
+
chain.Add(CreateManagedIdentityCredential());
82
+
}
60
83
}
61
84
62
-
if(!Options.ExcludeVisualStudioCredential)
85
+
if(!_useProdCredentials)
63
86
{
64
-
chain.Add(CreateVisualStudioCredential());
65
-
}
87
+
if(!Options.ExcludeSharedTokenCacheCredential)
88
+
{
89
+
chain.Add(CreateSharedTokenCacheCredential());
90
+
}
91
+
92
+
if(!Options.ExcludeVisualStudioCredential)
93
+
{
94
+
chain.Add(CreateVisualStudioCredential());
95
+
}
66
96
67
97
#pragma warning disable CS0618// Type or member is obsolete
68
-
if(!Options.ExcludeVisualStudioCodeCredential)
69
-
{
70
-
chain.Add(CreateVisualStudioCodeCredential());
71
-
}
98
+
if(!Options.ExcludeVisualStudioCodeCredential)
99
+
{
100
+
chain.Add(CreateVisualStudioCodeCredential());
101
+
}
72
102
#pragma warning restore CS0618// Type or member is obsolete
0 commit comments