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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions