Skip to content

Commit 787cabf

Browse files
authored
Fix tenant mismatch in GetFmiCredentialFromRma FMI integration test (#5851)
Fix tenant and client ID mismatch in GetFmiCredentialFromRma GetFmiCredentialFromRma had a hardcoded old tenant (f645ad92) and old client ID (4df2cbbb) from before the tenant migration in commit a066158. Updated to use the shared TenantId constant and RmaClientId that match the ID4SLab1 tenant.
1 parent 7b16289 commit 787cabf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests/FmiIntegrationTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,14 @@ public async Task Flow5_FmiToken_From_FmiCred()
239239
private static async Task<string> GetFmiCredentialFromRma(AssertionRequestOptions options)
240240
{
241241
//Fmi app/scenario parameters
242-
var clientId = "4df2cbbb-8612-49c1-87c8-f334d6d065ad";
243242
var scope = "api://AzureFMITokenExchange/.default";
244243

245244
X509Certificate2 cert = CertificateHelper.FindCertificateByName(TestConstants.AutomationTestCertName);
246245

247246
//Create application
248247
var confidentialApp = ConfidentialClientApplicationBuilder
249-
.Create(clientId)
250-
.WithAuthority("https://login.microsoftonline.com/f645ad92-e38d-4d1a-b510-d1b09a74a8ca", true)
248+
.Create(RmaClientId)
249+
.WithAuthority("https://login.microsoftonline.com/", TenantId)
251250
.WithCertificate(cert, sendX5C: true) //sendX5c enables SN+I auth which is required for FMI flows
252251
.WithAzureRegion(AzureRegion)
253252
.BuildConcrete();

0 commit comments

Comments
 (0)