Skip to content

[Bug] enable_broker_on_wsl prints pring to stdout #854

@galpin

Description

@galpin

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions