Skip to content

[Feature Request] Option to launch interactive auth on a different browser #749

Description

MSAL client type

Public

Problem Statement

I currently use the delegated auth flow approach by using app.acquire_token_interactive(..), which launches my default browser (Brave browser, in this case) on MacOS.

However, due to my institution's configuration, the authentication flow gets stuck indefinitely on the "Set up your device to get access" page. If I change my default browser to Chrome, it works successfully.

I noticed setting the preferred browser using the environment variable is possible. However, it is only applicable to Linux.

Proposed solution

Is it possible to specify a different browser programmatically without changing the default browser on my Mac?

One way is to remove the Linux platform check to allow other platforms to specify different browser via environment variable, too.

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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