A Microsoft Authentication Extensions (WAM) broker plugin for Azure Identity, enabling interactive authentication with Web Account Manager on Windows. Current version 1.3.0, requires Python >=3.9. Released as part of the Azure SDK for Python.
pip install azure-identity-brokerVerified import paths — ran on the pinned version, not inferred.
Creates a broker credential and acquires a token for Microsoft Graph. Replace AZURE_CLIENT_ID and AZURE_TENANT_ID environment variables with your app registration values.
Use DefaultAzureCredential or InteractiveBrowserCredential for cross-platform support.
If running in a GUI application, obtain the HWND of the parent window and pass it as parent_window_handle.
Use from azure.identity.broker import InteractiveBrowserBrokerCredential for version 1.x.
Run 'pip install azure-identity-broker' and ensure you use 'from azure.identity.broker import InteractiveBrowserBrokerCredential'.
Use AzureCliCredential, DefaultAzureCredential, or InteractiveBrowserCredential instead.
Provide a valid HWND (integer) or pass parent_window_handle=None if you don't have a parent window.