Skip to content

Added broker support for linux & wsl#41624

Merged
xiangyan99 merged 8 commits intomainfrom
identity_linux_broker
Jun 24, 2025
Merged

Added broker support for linux & wsl#41624
xiangyan99 merged 8 commits intomainfrom
identity_linux_broker

Conversation

@xiangyan99
Copy link
Copy Markdown
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@xiangyan99 xiangyan99 marked this pull request as ready for review June 20, 2025 20:02
Copilot AI review requested due to automatic review settings June 20, 2025 20:02
@xiangyan99 xiangyan99 requested review from a team, mccoyp, pvaneck and scbedd as code owners June 20, 2025 20:02
Copy link
Copy Markdown
Contributor

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 extends broker support to Linux and WSL, updates the package requirements, and adjusts testing and documentation accordingly.

  • Enabled new enable_broker_on_linux and enable_broker_on_wsl flags in the MSAL client setup.
  • Dropped Python 3.8 support, added Python 3.13 classifier, and bumped msal[broker] dependency.
  • Updated test skip logic and CHANGELOG entries for Linux, WSL, and macOS support.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tools/azure-sdk-tools/ci_tools/functions.py Added azure-identity-broker to the PyPy test environment map.
sdk/identity/azure-identity-broker/tests/test_broker.py Changed skip logic to skip only on Linux and updated skip reason.
sdk/identity/azure-identity-broker/setup.py Removed Python 3.8, added 3.13 classifier, bumped Python require, and updated msal[broker] version.
sdk/identity/azure-identity-broker/azure/identity/broker/_browser.py Added enable_broker_on_linux and enable_broker_on_wsl flags for broker support.
sdk/identity/azure-identity-broker/CHANGELOG.md Added entries for Linux & WSL support and Python 3.8 removal.
Comments suppressed due to low confidence (2)

sdk/identity/azure-identity-broker/CHANGELOG.md:7

  • This entry appears outside of a version header—please add a new version section (e.g., ## 1.4.0 (YYYY-MM-DD)) above these changes and update the date.
- Added broker support for Linux and WSL.

sdk/identity/azure-identity-broker/tests/test_broker.py:17

  • There are no tests verifying the new Linux and WSL broker flags (enable_broker_on_linux and enable_broker_on_wsl). Consider adding tests that instantiate the credential on those platforms and assert the flags are set correctly.
@pytest.mark.skipif(

Comment thread sdk/identity/azure-identity-broker/tests/test_broker.py
Copy link
Copy Markdown
Member

@pvaneck pvaneck left a comment

Choose a reason for hiding this comment

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

Let's add an entry to the README table for Linux and also an entry for the redirect URIs.

Comment thread sdk/identity/azure-identity-broker/README.md Outdated
@xiangyan99 xiangyan99 requested a review from pvaneck June 24, 2025 00:07
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure Identity SDK Improvements Jun 24, 2025
@xiangyan99 xiangyan99 merged commit 705070c into main Jun 24, 2025
34 checks passed
@xiangyan99 xiangyan99 deleted the identity_linux_broker branch June 24, 2025 00:13
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure Identity SDK Improvements Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants