Skip to content

Commit 2c8a9c2

Browse files
RyAuldCopilot
andauthored
Test: use shared Msal_Integration_tests UAMI in MI token acquirer E2E test (#3926)
Switch AcquireTokenWithManagedIdentity_UserAssignedAsync from the Id4STesting managed identity (clientId 5bcd1685-...) to the consolidated lab UAMI Msal_Integration_tests (clientId 45344e7d-...) in resource group MSAL_MSI. This lets us retire the single-purpose Id4STesting identity and reuse the shared lab identity already used by MSAL.NET E2E tests. The test only acquires a token for the https://vault.azure.net audience, so no Key Vault permissions are required; the new identity is a superset. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7c7626e commit 2c8a9c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/E2E Tests/TokenAcquirerTests/TokenAcquirer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,9 @@ public async Task AcquireTokenWithManagedIdentity_UserAssignedAsync()
561561
// Arrange
562562
const string scope = "https://vault.azure.net/.default";
563563
const string baseUrl = "https://vault.azure.net";
564-
const string clientId = "5bcd1685-b002-4fd1-8ebd-1ec3e1e4ca4d";
564+
// User-assigned managed identity "Msal_Integration_tests" (RG MSAL_MSI, sub c1686c51-b717-4fe0-9af3-24a20a41fb0c).
565+
// Shared/consolidated lab UAMI reused across MSAL and Id.Web E2E tests.
566+
const string clientId = "45344e7d-c562-4be6-868f-18dac789c021";
565567
TokenAcquirerFactoryTesting.ResetTokenAcquirerFactoryInTest();
566568
TokenAcquirerFactory tokenAcquirerFactory = TokenAcquirerFactory.GetDefaultInstance();
567569
IServiceProvider serviceProvider = tokenAcquirerFactory.Build();

0 commit comments

Comments
 (0)