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/extensions/Microsoft.Extensions.Azure/CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,16 @@
4
4
5
5
### Features Added
6
6
7
+
- Added support for [managed identity as a federated identity credential](https://learn.microsoft.com/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity?tabs=microsoft-entra-admin-center#azureidentity) in the client factory by specifying configuration item `credential` as "managedidentityasfederatedidentity" and providing the following named configuration items:
8
+
9
+
-`tenantId` : The tenant where the target resource was created
10
+
-`clientId` : The client identifier for the application, which must be granted access on the target resource
11
+
- One of [`managedIdentityClientId`, `objectId`, `resourceId`] : The user-assigned managed identity which you configured as a Federated Identity Credential (FIC)
12
+
-`azureCloud`: One of the following Azure cloud environments:
thrownewArgumentException("Only one of either 'clientId', 'managedIdentityResourceId', or 'managedIdentityObjectId' can be specified for managed identity.");
thrownewArgumentException("For workload identity, 'tenantId', 'clientId', and 'tokenFilePath' must be specified via environment variables or the configuration.");
thrownewArgumentException("For managed identity as a federated identity credential, 'tenantId', 'clientId', 'azureCloud', and one of ['managedIdentityClientId', 'resourceId', 'objectId'] must be specified via environment variables or the configuration.");
/// Creates an instance of the ManagedFederatedIdentityCredential with a synchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.
26
+
/// </summary>
27
+
/// <param name="tenantId">The Microsoft Entra tenant (directory) ID of the service principal.</param>
28
+
/// <param name="clientId">The client (application) ID of the service principal.</param>
29
+
/// <param name="managedIdentityId">The user-assigned managed identity which has been configured as a Federated Identity Credential (FIC). May be a client id, resource id, or object id.</param>
30
+
/// <param name="azureCloud">
31
+
/// The name of the cloud where the managed identity is configured. Valid values are:
32
+
/// <list type="bullet">
33
+
/// <item>
34
+
/// <term>public</term>
35
+
/// <description>Entra ID Global cloud</description>
36
+
/// </item>
37
+
/// <item>
38
+
/// <term>usgov</term>
39
+
/// <description>Entra ID US Government</description>
40
+
/// </item>
41
+
/// <item>
42
+
/// <term>china</term>
43
+
/// <description>Entra ID China operated by 21Vianet</description>
44
+
/// </item>
45
+
/// </list>
46
+
/// </param>
47
+
/// <param name="additionallyAllowedTenants">The set of </param>
/// Creates an instance of the ManagedFederatedIdentityCredential with a synchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.
55
+
/// </summary>
56
+
/// <param name="tenantId">The Microsoft Entra tenant (directory) ID of the service principal.</param>
57
+
/// <param name="clientId">The client (application) ID of the service principal.</param>
58
+
/// <param name="managedIdentityId">The user-assigned managed identity which has been configured as a Federated Identity Credential (FIC). May be a client id, resource id, or object id.</param>
59
+
/// <param name="azureCloud">
60
+
/// The name of the cloud where the managed identity is configured. Valid values are:
61
+
/// <list type="bullet">
62
+
/// <item>
63
+
/// <term>public</term>
64
+
/// <description>Entra ID Global cloud</description>
65
+
/// </item>
66
+
/// <item>
67
+
/// <term>usgov</term>
68
+
/// <description>Entra ID US Government</description>
69
+
/// </item>
70
+
/// <item>
71
+
/// <term>china</term>
72
+
/// <description>Entra ID China operated by 21Vianet</description>
73
+
/// </item>
74
+
/// </list>
75
+
/// </param>
76
+
/// <param name="additionallyAllowedTenants">The set of </param>
/// Creates an instance of the ManagedFederatedIdentityCredential with a synchronous callback that provides a signed client assertion to authenticate against Microsoft Entra ID.
84
+
/// </summary>
85
+
/// <param name="tenantId">The Microsoft Entra tenant (directory) ID of the service principal.</param>
86
+
/// <param name="clientId">The client (application) ID of the service principal.</param>
87
+
/// <param name="managedIdentityId">The user-assigned managed identity which has been configured as a Federated Identity Credential (FIC). May be a client id, resource id, or object id.</param>
88
+
/// <param name="azureCloud">
89
+
/// The name of the cloud where the managed identity is configured. Valid values are:
90
+
/// <list type="bullet">
91
+
/// <item>
92
+
/// <term>public</term>
93
+
/// <description>Entra ID Global cloud</description>
94
+
/// </item>
95
+
/// <item>
96
+
/// <term>usgov</term>
97
+
/// <description>Entra ID US Government</description>
98
+
/// </item>
99
+
/// <item>
100
+
/// <term>china</term>
101
+
/// <description>Entra ID China operated by 21Vianet</description>
102
+
/// </item>
103
+
/// </list>
104
+
/// </param>
105
+
/// <param name="additionallyAllowedTenants">The set of </param>
0 commit comments