Skip to content

Conversation

TingluoHuang
Copy link
Member

@Copilot Copilot AI review requested due to automatic review settings May 21, 2025 17:58
@TingluoHuang TingluoHuang requested a review from a team as a code owner May 21, 2025 17:58
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the runner to use the Auth V2 endpoint during configuration when specific agent properties are set.

  • Adds a conditional block to inject enableAuthMigrationByDefault and authorizationUrlV2 into the OAuth credential payload.
  • Guards the new behavior on the EnableAuthMigrationByDefault and AuthorizationUrlV2 properties.
Comments suppressed due to low confidence (1)

src/Runner.Listener/Configuration/ConfigurationManager.cs:390

  • New functionality for Auth V2 migration is introduced but lacks unit tests. Please add tests under Test/L0/Runner.Listener to cover the scenario when EnableAuthMigrationByDefault is true and AuthorizationUrlV2 is set.
if (agent.Properties.GetValue("EnableAuthMigrationByDefault", false) &&

@TingluoHuang TingluoHuang merged commit d9e7144 into main May 21, 2025
9 checks passed
@TingluoHuang TingluoHuang deleted the users/tihuang/defaultauthv2 branch May 21, 2025 20:49
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
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.

2 participants