Skip to content

[Bug] System browser process on Linux writes junk to standard out/error #675

Open
@Binary-Eater

Description

@Binary-Eater

Describe the bug
When using msal-python to acquire tokens interactively, the stdout/stderr of the launched browser process is not redirected (at least on Linux). This leads to the browser output interfering with the program's stdout for any programming consuming msal-python in this manner.

A similar issue was already opened and resolved for the dotnet equivalent.

AzureAD/microsoft-authentication-library-for-dotnet#2427

To Reproduce
Steps to reproduce the behavior:

  1. Launch Chrome/Chromium before running anything
  2. Run interactive_sample.py with Chromium or Google Chrome set as the default browser on Linux. You should not need to modify the sample.

Expected behavior
No prints from the launched browser program should be propogated to the user (unless the user explicitly requests to see them/configures to suppress them).

What you see instead
The output Opening in existing browser session.

The MSAL Python version you are using
Paste the output of this
python -c "import msal; print(msal.__version__)"

❯ python -c "import msal; print(msal.__version__)"
1.24.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions