Migrate All lab helper methods to Key Vault/Region test migration. #5606
+13
−85
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.
Migrate Test Infrastructure to Key Vault and IMDS V2 Improvements
Overview
This PR consolidates several infrastructure improvements to MSAL.NET, focusing on migrating lab test infrastructure to use Azure Key Vault for credential management and enhancing IMDS V2 support for managed identity scenarios.
Key Changes
🔐 Test Infrastructure Migration to Key Vault
GetArlingtonADFSUserAsyncto retrieve credentials securely from Key VaultGetCIAMUserAsyncmethod with Key Vault integrationLabUserHelperas part of the migration to Key Vault-based credential management🚀 IMDS V2 and Managed Identity Improvements
ImdsProbeRetryPolicyfor more intelligent retry logic specific to IMDS probesHttpRetryConditionsfor better handling of IMDS-specific scenariosRetryPolicyFactoryto support new retry policies🧪 Test Configuration Updates
DesktopOsHelper.IsMacto work properly on .NET 10 + macOS 26📦 Project and Sample Updates
Benefits
Testing
Breaking Changes
None - this is purely an infrastructure improvement that maintains backward compatibility.
Related Issues/PRs
This PR focuses on infrastructure improvements and does not introduce any changes to the public MSAL.NET API surface or core authentication functionality.