-
Notifications
You must be signed in to change notification settings - Fork 205
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
Enable broker support on Linux #766
base: dev
Are you sure you want to change the base?
Conversation
/azp run MSAL-Python-SDL-CI |
pymsalruntime>=0.17,<0.18; python_version>='3.8' and platform_system=='Darwin' | ||
pymsalruntime>=0.17,<0.19; python_version>='3.8' and platform_system=='Darwin' | ||
# PyMsalRuntime 0.18+ is expected to support broker on Linux | ||
pymsalruntime>=0.18,<0.19; python_version>='3.8' and platform_system=='Linux' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you released or do you plan to release 0.18.0 for Linux? I saw right now it's still 0.17.1
https://pypi.org/project/pymsalruntime/#history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not yet released 0.18.0, but i'll be making that release soon, and this will be the first package with linux broker support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: This PR shall be changed to a draft. We won't merge it in until pymsalruntime 0.18 being released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we ensure the next release of pymsalruntime
have whls built for Python 3.13 as well? The latest version of pymsalruntime
doesn't seem to have that.
@@ -39,7 +39,8 @@ | |||
_AZURE_CLI, | |||
authority="https://login.microsoftonline.com/organizations", | |||
enable_broker_on_mac=True, | |||
enable_broker_on_windows=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, you find this test file, please make sure it is able to invoke broker and you need to manually finish the signin process in the broker prompt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this PR looks good to me. And please make sure get an approval from Ray.
@@ -200,6 +200,7 @@ def _build_app(cls, | |||
http_client=http_client or MinimalHttpClient(), | |||
enable_broker_on_windows=broker_available, | |||
enable_broker_on_mac=broker_available, | |||
enable_broker_on_linux=broker_available, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: Thanks for finding this test file!
suggestion: If you haven't already, please also do python -m unittest tests.test_e2e
and make sure we won't run into any issue. Note that you will need to setup an .env
first, whose content is described at the beginning of this test_e2e.py file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for a clean PR! Implementation wise, it looks good. I added some suggestions above, mostly in terms of our workflow. Please make corresponding changes and then wait for the PyMsalRuntime release.
Co-authored-by: Ray Luo <rayluo@microsoft.com>
Co-authored-by: Ray Luo <rayluo@microsoft.com>
Co-authored-by: Ray Luo <rayluo@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will also need to change the precise dependency version error message here and a approximate version hint there
@@ -1921,7 +1921,7 @@ def __init__(self, client_id, client_credential=None, **kwargs): | |||
|
|||
.. note:: | |||
|
|||
You may set enable_broker_on_windows and/or enable_broker_on_mac to True. | |||
You may set enable_broker_on_windows and/or enable_broker_on_mac and/or enable_broker_on_linux to True. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Does the Linux broker require yet another new redirect_uri being registered? If so, please also update the documentation here.
No description provided.