Skip AcquireTokenWithMtlsPop test: AAD westus3 test slice returns Bearer - #3892
Merged
Merged
Conversation
The E2E test AcquireTokenWithMtlsPop_WithBindingCertificate_ReturnsMtlsPopToken fails consistently in the PR pipeline with: MsalClientException: You asked for token type mtls_pop, but receive Bearer. Root cause is server-side: the AAD westus3 test-slice mtlsauth endpoint is downgrading token_type=mtls_pop responses to Bearer. MSAL is correctly routing to westus3.mtlsauth.microsoft.com, sending token_type=mtls_pop, and presenting the SNI cert. The matching MSAL.NET test against the global mtlsauth.microsoft.com endpoint continues to pass, isolating the issue to the test slice — not a Microsoft.Identity.Web or MSAL regression. Skip the test via [Fact(Skip = "...")] (the repo's established pattern for known-broken external-dependency tests) until the AAD test slice honors token_type=mtls_pop again. Tracking: #3891 Related: AzureAD/microsoft-authentication-library-for-dotnet#6084 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Avery-Dunn
approved these changes
Jun 23, 2026
RyAuld
approved these changes
Jun 23, 2026
This was referenced Jun 24, 2026
Merged
Closed
Closed
Closed
Merged
This was referenced Jul 17, 2026
Closed
Closed
Closed
Closed
Closed
This was referenced Jul 27, 2026
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Merged
Merged
This was referenced Aug 3, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The E2E test
AcquireTokenWithMtlsPop_WithBindingCertificate_ReturnsMtlsPopToken(tests/E2E Tests/TokenAcquirerTests/TokenAcquirer.cs) is failing on the PR pipeline with:Investigation
Reproduced and root-caused while debugging the same failure in MSAL.NET (AzureAD/microsoft-authentication-library-for-dotnet#6084):
westus3.mtlsauth.microsoft.com(test slice — used by this test)Bearermtlsauth.microsoft.com(global — used by a sibling MSAL.NET test)MSAL is correctly routing to the regional mtlsauth endpoint, sending
token_type=mtls_pop, and presenting the SNI cert. The AAD westus3 test slice is silently downgrading the response. This is not a Microsoft.Identity.Web or MSAL regression.Fix
Skip the test via
[Fact(Skip = ""..."")]— the repo's established pattern for known-broken external-dependency tests (see e.g.WebAppIntegrationTests.cs,TokenAcquirer.cs:268,CertificateRotationTest.cs:45). Remove the skip when AAD test slice is fixed.Tracking