Skip to content

Conversation

@Avery-Dunn
Copy link
Contributor

@Avery-Dunn Avery-Dunn commented Jan 12, 2026

Continues the lab migration work done in #5631 and other PRs.

This PR removes ConfidentialAppSettings and some other hardcoded configuration, and replaces it with calls to the new helpers in Microsoft.Identity.Test.LabInfrastructure.

Previous PRs performed a major refactor of the Microsoft.Identity.Test.LabInfrastructure namespace, to retrieve configuration required by integration tests from a key vault instead of an API. Those PRs also adjusted all of the tests that were using Microsoft.Identity.Test.LabInfrastructure, and generally reduced the number of lab resources that the tests needed.

However, many of the confidential client tests were using a helper class called ConfidentialAppSettings, which used a mix of hardcoded strings and calls to Microsoft.Identity.Test.LabInfrastructure to provide configuration, and this would be hard to maintain going forward: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/main/tests/Microsoft.Identity.Test.Integration.netcore/Infrastructure/ConfidentialAppSettings.cs

Most of the file changes were in test classes and are just now making calls to different helpers, the exceptions are:

  • ConfidentialAppSettings: Completely removed, previously provided hardcoded config based on cloud type
  • ClientCredentialsTests.NetFwk: Expanded the internal helper method for setting the correct config based on the cloud type
  • AppConfig: Added some extra config fields required by tests that don't use UserConfig, such as tenant ID
  • KeyVaultSecrets: Defined a few more names of key vault secrets which were previously missing or defined somewhere else
  • LabUserHelper: Added a new helper for retrieving a secret string from the key vault, for tests that deal with app secrets instead of user secrets

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner January 12, 2026 16:40
@Avery-Dunn Avery-Dunn marked this pull request as draft January 12, 2026 19:00
@Avery-Dunn Avery-Dunn marked this pull request as ready for review January 14, 2026 16:07
@Avery-Dunn Avery-Dunn merged commit a51b7f6 into main Jan 16, 2026
11 checks passed
@Avery-Dunn Avery-Dunn deleted the avdunn/lab-migration-reduce-apps branch January 16, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants