Skip to content
Prev Previous commit
Next Next commit
pr comments
  • Loading branch information
GladwinJohnson committed Jul 11, 2023
commit c1330e71aed76b7971576499b4a3a7045ab35a46
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Microsoft.Identity.Client.AppConfig;
using Microsoft.Identity.Client.Instance;
using Microsoft.Identity.Client.Instance.Discovery;
using Microsoft.Identity.Client.Internal;
using Microsoft.Identity.Client.ManagedIdentity;
using Microsoft.Identity.Client.Utils;
using Microsoft.Identity.Test.Common.Core.Helpers;
Expand Down Expand Up @@ -350,17 +351,17 @@ public static void AddManagedIdentityMockHandler(

if (userAssignedIdentityId == UserAssignedIdentityId.ClientId)
{
httpMessageHandler.ExpectedQueryParams.Add(TestConstants.ManagedIdentityClientId, userAssignedId);
httpMessageHandler.ExpectedQueryParams.Add(Constants.ManagedIdentityClientId, userAssignedId);
}

if (userAssignedIdentityId == UserAssignedIdentityId.ResourceId)
{
httpMessageHandler.ExpectedQueryParams.Add(TestConstants.ManagedIdentityResourceId, userAssignedId);
httpMessageHandler.ExpectedQueryParams.Add(Constants.ManagedIdentityResourceId, userAssignedId);
}

if (userAssignedIdentityId == UserAssignedIdentityId.ObjectId)
{
httpMessageHandler.ExpectedQueryParams.Add(TestConstants.ManagedIdentityObjectId, userAssignedId);
httpMessageHandler.ExpectedQueryParams.Add(Constants.ManagedIdentityObjectId, userAssignedId);
}

httpMessageHandler.ResponseMessage = responseMessage;
Expand Down
4 changes: 0 additions & 4 deletions tests/Microsoft.Identity.Test.Common/TestConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ public static IDictionary<string, string> ExtraQueryParameters
public const string MsalArlingtonCCAKeyVaultUri = "https://msidlabs.vault.azure.net:443/secrets/ARLMSIDLAB1-IDLASBS-App-CC-Secret";
public const string MsalArlingtonCCAKeyVaultSecretName = "ARLMSIDLAB1-IDLASBS-App-CC-Secret";

public const string ManagedIdentityClientId = "client_id";
public const string ManagedIdentityObjectId = "object_id";
public const string ManagedIdentityResourceId = "mi_res_id";

public enum AuthorityType { B2C };
public static string[] s_prodEnvAliases = new[] {
"login.microsoftonline.com",
Expand Down