Skip to content

Commit ae9ba1a

Browse files
committed
Fix interactive tests to use correct app configuration
- Changed Interactive_AADAsync to use GetDefaultUserAsync() instead of GetDefaultUserWithMultiTenantAppAsync() - Fixed InteractiveConsentPromptAsync to use default app - Fixed ValidateCcsHeadersForInteractiveAuthCodeFlowAsync to use default app - Interactive tests should use public client apps, not the multi-tenant confidential app - This resolves AADSTS7000218 errors (missing client_secret for confidential clients)
1 parent 7a92a52 commit ae9ba1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Microsoft.Identity.Test.Integration.netcore/SeleniumTests/InteractiveFlowTests.NetFwk.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void TestInitialize()
4343
public async Task Interactive_AADAsync()
4444
{
4545
// Arrange
46-
LabResponse labResponse = await LabUserHelper.GetDefaultUserWithMultiTenantAppAsync().ConfigureAwait(false);
46+
LabResponse labResponse = await LabUserHelper.GetDefaultUserAsync().ConfigureAwait(false);
4747
var result = await RunTestForUserAsync(labResponse).ConfigureAwait(false);
4848
}
4949

@@ -69,7 +69,7 @@ public async Task Interactive_MsaUser_Async()
6969
[RunOn(TargetFrameworks.NetCore)]
7070
public async Task InteractiveConsentPromptAsync()
7171
{
72-
var labResponse = await LabUserHelper.GetDefaultUserWithMultiTenantAppAsync().ConfigureAwait(false);
72+
var labResponse = await LabUserHelper.GetDefaultUserAsync().ConfigureAwait(false);
7373

7474
await RunPromptTestForUserAsync(labResponse, Prompt.Consent, true).ConfigureAwait(false);
7575
await RunPromptTestForUserAsync(labResponse, Prompt.Consent, false).ConfigureAwait(false);
@@ -163,7 +163,7 @@ public async Task Interactive_Adfs_DirectAsync()
163163
[RunOn(TargetFrameworks.NetCore)]
164164
public async Task ValidateCcsHeadersForInteractiveAuthCodeFlowAsync()
165165
{
166-
LabResponse labResponse = await LabUserHelper.GetDefaultUserWithMultiTenantAppAsync().ConfigureAwait(false);
166+
LabResponse labResponse = await LabUserHelper.GetDefaultUserAsync().ConfigureAwait(false);
167167

168168
var pca = PublicClientApplicationBuilder
169169
.Create(labResponse.App.AppId)

0 commit comments

Comments
 (0)