Skip to content

[Core/Auth] Enable native authentication broker on macOS, Linux, and WSL #33842

Description

@bmiddha

Preconditions

  • No need to upgrade Python SDK or the Python SDK is ready.

Related command

az login and subsequent user-token acquisition commands.

Resource Provider

N/A — Azure CLI core authentication.

Description of Feature or Work Requested

Azure CLI currently enables MSAL's native Web Account Manager broker on Windows through enable_broker_on_windows, but defaults to browser authentication on macOS, Linux, and WSL.

MSAL Python 1.36 supports native brokers through:

  • enable_broker_on_mac
  • enable_broker_on_linux
  • enable_broker_on_wsl

Enable the appropriate broker by default on each supported platform when its runtime prerequisites are available. This provides OS-integrated SSO, device-bound authentication, token protection, and support for device-based Conditional Access policies.

When the broker or its native dependencies are unavailable, Azure CLI must retain its existing browser/device-code fallback rather than failing authentication.

Relevant MSAL documentation:

Minimum API Version Required

N/A

Swagger PR link / SDK link

N/A

Request Example

No response

Target Date

N/A

PM Contact

N/A

Engineer Contact

N/A

Additional context

No response

Activity

  1. yonzhan commented on Aug 4, 2026

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  2. added
    customer-reportedIssues that are reported by GitHub users external to the Azure organization.
    Accountaz login/account
    Azure CLI TeamThe command of the issue is owned by Azure CLI team
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    on Aug 4, 2026
  3. removed
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    on Aug 4, 2026
  4. added this to the Backlog milestone on Aug 4, 2026
  5. isra-fel commented on Aug 5, 2026

    @isra-fel
    Member

    Thanks for raising this! Quick update: this is actively in progress. We're currently investing significant time in thorough testing to make sure the change is solid and doesn't introduce regressions across the supported platforms. We appreciate your patience and will follow up with next steps as things progress.

  6. bmiddha commented on Aug 5, 2026

    @bmiddha
    ContributorAuthor

    Yeming Liu (@isra-fel) Thanks for the update.
    Quick question: Would adding support for linux arm64 also be in the scope of this work? I noticed that pymsalruntime does not ship precompiled wheels for linux arm64
    AzureAD/microsoft-authentication-library-for-python#949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions