You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: msal-python-conceptual/advanced/linux-broker-py.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.topic: how-to
8
8
ms.date: 06/03/2025
9
9
---
10
10
11
-
# Enable SSSO in native Linux using MSAL Python
11
+
# Enable SSO in native Linux using MSAL Python
12
12
13
13
Microsoft Authentication Library (MSAL) is a Software Development Kit (SDK) that enables apps to call the Microsoft Single Sign-on to Linux broker, a Linux component that is shipped independent of the Linux Distribution, however it gets installed using a package manager using `sudo apt install microsoft-identity-broker` or `sudo dnf install microsoft-identity-broker`.
14
14
@@ -46,13 +46,12 @@ An authentication broker is an application that runs on a user’s machine that
3. To use the broker, you will need to install the broker-related packages in addition to the core MSAL from PyPI:
49
+
1. To use the broker, you will need to install the broker-related packages in addition to the core MSAL from PyPI:
50
50
51
51
```python
52
-
pip install msal[broker]>=1.31,<2
53
-
pip install pymsalruntime
52
+
pip install "msal[broker]>=1.33.0b1,<2"
54
53
```
55
-
54
+
56
55
4. Once configured, you can call `acquire_token_interactive` to acquire a token.
57
56
58
57
```python
@@ -97,8 +96,11 @@ MSAL will either error out, or silently fallback to non-broker flows.
97
96
4. MSAL errors out when broker is opted in, installed, initialized, but subsequent token request(s) failed.
98
97
99
98
>[!IMPORTANT]
100
-
>If broker-related packages are not installed and you will try to use the authentication broker, you will get an error: `ImportError: You need to install dependency by: pip install "msal[broker]>=1.31,<2"`.
99
+
>If broker-related packages are not installed and you will try to use the authentication broker, you will get an error: `ImportError: You need to install dependency by: pip install "msal[broker]>=1.xx,<2"`.
101
100
101
+
<!--
102
+
This one is an error message whose content happens to be changing based on platform. The doc shall just use a placeholder that is good enough.
103
+
-->
102
104
>[!NOTE]
103
105
>The `parent_window_handle` parameter is required even though on Linux it is not used. For GUI applications, the login prompt location will be determined ad-hoc and currently cannot be bound to a specific window. In a future update, this parameter will be used to determine the _actual_ parent window.
0 commit comments