Skip to content

Commit

Permalink
Revert Azure.Identity Back to 1.12.1 (#1069)
Browse files Browse the repository at this point in the history
* Revert "Update azure azure-sdk-for-net monorepo (#1066)"

This reverts commit 4122113.

* Revert Azure.Identity update
  • Loading branch information
wsugarman authored Oct 17, 2024
1 parent 4122113 commit 86cf0bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<ItemGroup>
<PackageVersion Include="Azure.Core" Version="1.44.1" />
<PackageVersion Include="Azure.Identity" Version="1.13.0" />
<PackageVersion Include="Azure.Identity" Version="1.12.1" />
<PackageVersion Include="Azure.Messaging.EventGrid" Version="4.27.0" />
<PackageVersion Include="Azure.Security.KeyVault.Keys" Version="4.7.0" />
<PackageVersion Include="Azure.Storage.Blobs" Version="12.22.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,8 @@ private static string GetClientId(ManagedIdentityCredential credential)
.GetProperty("Client", BindingFlags.NonPublic | BindingFlags.Instance)
.GetValue(credential);

ManagedIdentityId identityId = managedIdentityClientType
.GetProperty("ManagedIdentityId", BindingFlags.NonPublic | BindingFlags.Instance)
.GetValue(client) as ManagedIdentityId;

return typeof(ManagedIdentityId)
.GetField("_userAssignedId", BindingFlags.Instance | BindingFlags.NonPublic)
.GetValue(identityId) as string;
return managedIdentityClientType
.GetProperty("ClientId", BindingFlags.NonPublic | BindingFlags.Instance)
.GetValue(client) as string;
}
}

0 comments on commit 86cf0bd

Please sign in to comment.