Skip to content

Commit 9205d25

Browse files
committed
Refine installation instructions and update variable placeholders in Linux broker documentation
1 parent 3079040 commit 9205d25

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

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

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

11-
## Enable SSO in WSL (Windows Subsystem for Linux) apps using MSAL Python and WAM
11+
# Enable SSO in WSL (Windows Subsystem for Linux) apps using MSAL Python and WAM
1212

1313
MSAL is able to call the Microsoft Single Sign-on to Linux, 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

@@ -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 https://github.com/AzureAD/microsoft-authentication-library-for-python/archive/refs/heads/dev.zip
113+
pip install msal[broker]>=1.31,<2
115114
pip install pymsalruntime
116115
```
117116

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ sudo dnf install python3 python3-pip -y
151151
To use the broker, you will need to install the broker-related packages in addition to the core MSAL from PyPI:
152152

153153
```python
154-
#pip install msal[broker]>=1.31,<2
155-
pip install https://github.com/AzureAD/microsoft-authentication-library-for-python/archive/refs/heads/dev.zip
154+
pip install msal[broker]>=1.31,<2
156155
pip install pymsalruntime
157156
```
158157

159-
### Once configured, you can call `acquire_token_interactive` to acquire a token.
158+
### Create Project
159+
Once configured, you can call `acquire_token_interactive` to acquire a token.
160160

161161
```python
162162
import sys # For simplicity, we'll read config file from 1st CLI param sys.argv[1]
@@ -169,10 +169,10 @@ import msal
169169
# logging.basicConfig(level=logging.DEBUG)
170170

171171
var_authority = "https://login.microsoftonline.com/common"
172-
var_client_id = "4b0db8c2-9f26-4417-8bde-3f0e3656f8e0"
173-
var_username = "[email protected]"
172+
var_client_id = "your-client-id-here" # Replace with your app's client ID
173+
var_username = "your-username-here" # Replace with your username, e.g., "
174174
var_scope = ["User.ReadBasic.All"]
175-
var_endpoint = "https://graph.microsoft.com/v1.0/users"
175+
# Removed unused variable to avoid confusion
176176

177177

178178
# Create a preferably long-lived app instance which maintains a token cache (Default cache is in memory only).
@@ -207,4 +207,4 @@ else:
207207
if 65001 in result.get("error_codes", []): # Not mean to be coded programatically, but...
208208
# AAD requires user consent for U/P flow
209209
print("Visit this to consent:", app.get_authorization_request_url(config["scope"]))
210-
```
210+
```

0 commit comments

Comments
 (0)