Skip to content

Commit 098a812

Browse files
Merge pull request #128 from ploegert/docs-editor/linux-broker-py-1750273630
Update linux-broker-py.md
2 parents 4922745 + b1b9a8b commit 098a812

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

msal-python-conceptual/advanced/linux-broker-py-wsl.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ Reference the [Enable SSO in native Linux apps using MSAL Python](./linux-broker
110110
To use the broker, you will need to install the broker-related packages in addition to the core MSAL from PyPI:
111111

112112
```python
113-
pip install msal[broker]>=1.31,<2
114-
pip install pymsalruntime
113+
pip install "msal[broker]>=1.33.0b1,<2"
115114
```
116115

117116
### Run the Sample App

msal-python-conceptual/advanced/linux-broker-py.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.topic: how-to
88
ms.date: 06/03/2025
99
---
1010

11-
# Enable SSSO in native Linux using MSAL Python
11+
# Enable SSO in native Linux using MSAL Python
1212

1313
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`.
1414

@@ -46,13 +46,12 @@ An authentication broker is an application that runs on a user’s machine that
4646
https://login.microsoftonline.com/common/oauth2/nativeclient
4747
```
4848
49-
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:
5050
5151
```python
52-
pip install msal[broker]>=1.31,<2
53-
pip install pymsalruntime
52+
pip install "msal[broker]>=1.33.0b1,<2"
5453
```
55-
54+
5655
4. Once configured, you can call `acquire_token_interactive` to acquire a token.
5756
5857
```python
@@ -97,8 +96,11 @@ MSAL will either error out, or silently fallback to non-broker flows.
9796
4. MSAL errors out when broker is opted in, installed, initialized, but subsequent token request(s) failed.
9897
9998
>[!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"`.
101100
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+
-->
102104
>[!NOTE]
103105
>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.
104106
@@ -151,8 +153,7 @@ sudo dnf install python3 python3-pip -y
151153
To use the broker, you will need to install the broker-related packages in addition to the core MSAL from PyPI:
152154

153155
```python
154-
pip install msal[broker]>=1.31,<2
155-
pip install pymsalruntime
156+
pip install "msal[broker]>=1.33.0b1,<2"
156157
```
157158

158159
### Create Project

0 commit comments

Comments
 (0)