azure-identity-broker
Microsoft Azure Identity Broker plugin for Python
What it is and what it does
Azure Identity Broker is a plugin for the Azure Identity library that delegates authentication to platform-native credential brokers already running on a user's machine. Instead of handling authentication directly in your Python application, it uses Web Account Manager (WAM) on Windows and WSL, Company Portal on macOS, or Microsoft Identity Broker on Linux to manage tokens and authentication handshakes. This approach leverages the operating system's built-in security and account management, reducing the burden on individual applications.
The package provides InteractiveBrowserBrokerCredential, which extends Azure Identity's InteractiveBrowserCredential to work with these brokers. You supply a parent window handle so the broker's authentication dialog appears in the correct context, and optionally enable silent authentication to use the default broker account without user interaction. It integrates with any Azure SDK client library that accepts credentials from Azure Identity, making it suitable for desktop applications that need to authenticate users against Microsoft Entra ID.
Use it for:
- Desktop applications on Windows/macOS/Linux that need to authenticate users against Microsoft Entra ID without managing tokens directly.
- Applications requiring single sign-on (SSO) by leveraging existing platform broker accounts already authenticated on the user's machine.
- Scenarios where you want to enable MSA passthrough for first-party applications to accept personal Microsoft accounts.
- Interactive applications that need to show authentication dialogs in the correct window context via a parent window handle.
- Enterprise deployments where the broker (WAM, Company Portal, or Identity Broker) is already deployed and managed by IT.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends Azure Identity to enable authentication through platform-native authentication brokers (WAM on Windows/WSL, Company Portal on macOS, Microsoft Identity Broker on Linux) via the InteractiveBrowserBrokerCredential class.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and requires only two lightweight runtime dependencies (azure-identity and msal). Install it if you are building a desktop application that needs to authenticate against Microsoft Entra ID and can rely on a platform broker being present. Not suitable if you need Azure AD B2C support or if your deployment environment lacks a compatible broker.
Install
azure-identity-broker on PyPI
pip
pip install azure-identity-brokeruv
uv add azure-identity-brokerpoetry
poetry add azure-identity-brokerInstalling azure-identity-broker
Before you install
Low install friction with a pure Python wheel. Actively maintained with recent release (2025-08-07) and ongoing commits. Requires Python 3.9 or later; Python 3.8 support was dropped in version 1.3.0b2.
License in practice
MIT License permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install azure-identity-broker
from azure.identity.broker import InteractiveBrowserBrokerCredential
credential = InteractiveBrowserBrokerCredential(parent_window_handle=window_handle)
# Use credential with Azure SDK clients like BlobServiceClient
Requires a parent window handle (integer on Windows/macOS, or msal.PublicClientApplication.CONSOLE_WINDOW_HANDLE on macOS). Platform-specific broker must be installed and running on the user's machine.
Verify before relying
- Whether the package works with all versions of azure-identity or has specific version constraints beyond what the fact sheet shows.
- Performance characteristics or latency overhead of broker-mediated authentication compared to direct credential flows.
- Detailed error handling and recovery behavior when the broker is unavailable or authentication fails.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — azure-identity, msal |
| Maintenance | actively maintained — 372 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 168,431/month — #10,449 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_identity_broker-1.3.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
identityProvides a high-level authentication and…
permissive · top 15,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
redis-entraidProvides Entra ID (Azure Active Directory)…
unclear · top 5,000 on PyPI
azure-mgmt-msiManages Azure Managed Service Identities…
permissive · top 5,000 on PyPI
microsoft-kiota-authentication-azureProvides Azure identity authentication for HTTP…
permissive · top 5,000 on PyPI
azure-mgmt-coreProvides ARM-specific extensions to Azure Core…
permissive · top 1,000 on PyPI
fastapi-azure-authAdds Azure Entra ID (formerly Azure AD)…
permissive · top 15,000 on PyPI
microsoft-agents-authentication-msalProvides MSAL-based authentication for…
permissive · top 15,000 on PyPI
azure-communication-identityCreates and manages user identities and access…
permissive · top 15,000 on PyPI