-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support auth code flow in WSL Ubuntu 18.04 #332
Comments
Test script: import msal
app = msal.PublicClientApplication('04b07795-8ddb-461a-bbee-02f9e1bf7b46', authority='https://login.microsoftonline.com/organizations')
app.acquire_token_interactive(['https://management.azure.com/.default']) Error:
|
@jiasli , how reliable is that "...Start-Process url" approach? Also, isn't that |
Thanks @rayluo for the rapid response.
Yes, detecting WSL 2 with
The problem is not regarding WSL 1 or WSL 2, but whether the Ubuntu image has
|
The help message of
|
It will be good for MSAL to support auth code flow in WSL Ubuntu 18.04.
webbrowser
doesn't work in WSL Ubuntu 18.04 due to the lack ofwww-browser
:WSL Ubuntu 20.04 already supports this:
$ python3 -V Python 3.8.5 $ python3 -c "import webbrowser; print(webbrowser.get().name)" www-browser $ which www-browser /usr/bin/www-browser
Azure CLI supports WSL Ubuntu 18.04 by
https://github.com/Azure/azure-cli/blob/3bff786b9e337aa35bb4cc64a09e5600a35663f8/src/azure-cli-core/azure/cli/core/util.py#L637-L648
Without this functionality, Azure CLI will have a regression when using MSAL.
The text was updated successfully, but these errors were encountered: