-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Description
Describe the bug
Using the PublicClientApplication.enable_broker_on_wsl
argument, the line "{{\"ping\",\"success\"}}}
is written to stdout.
To Reproduce
from msal import PublicClientApplication
client_id = "REDACTED"
authority = "REDACTED"
scopes = [f"api://{client_id}/.default"]
app = PublicClientApplication(
client_id=client_id,
authority=authority,
enable_broker_on_windows=True,
enable_broker_on_wsl=True,
)
token = app.acquire_token_interactive(
scopes=scopes,
parent_window_handle=PublicClientApplication.CONSOLE_WINDOW_HANDLE,
)
Expected behavior
Nothing should be output to stdout.
What you see instead
> uv run repro.py
"{{\"ping\",\"success\"}}}"
The MSAL Python version you are using
1.33.0