-
Notifications
You must be signed in to change notification settings - Fork 203
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?
Changes from all commits
d2fc35f
edf77b4
3bf9111
caab447
aa5c74c
6f52d28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,9 +62,11 @@ broker = | |
# most existing MSAL Python apps do not have the redirect_uri needed by broker. | ||
# | ||
# We need pymsalruntime.CallbackData introduced in PyMsalRuntime 0.14 | ||
pymsalruntime>=0.14,<0.18; python_version>='3.6' and platform_system=='Windows' | ||
pymsalruntime>=0.14,<0.19; python_version>='3.6' and platform_system=='Windows' | ||
# On Mac, PyMsalRuntime 0.17+ is expected to support SSH cert and ROPC | ||
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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Can we ensure the next release of |
||
|
||
[options.packages.find] | ||
exclude = | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,9 @@ | |
_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 commentThe 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. |
||
enable_broker_on_windows=True, | ||
enable_broker_on_linux=True, | ||
) | ||
|
||
def interactive_and_silent(scopes, auth_scheme, data, expected_token_type): | ||
print("An account picker shall be pop up, possibly behind this console. Continue from there.") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 |
||
) | ||
|
||
def _test_username_password(self, | ||
|
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.