Skip to content
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

{Core} Bump MSAL to 1.10.0 #17240

Merged
merged 2 commits into from
Mar 11, 2021
Merged

{Core} Bump MSAL to 1.10.0 #17240

merged 2 commits into from
Mar 11, 2021

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Mar 9, 2021

Description

Bump MSAL to 1.10.0 so that AzureAD/microsoft-authentication-library-for-python#314 is fixed.

Symptom

When

  1. ARM (https://management.azure.com/.default) doesn't require MFA
  2. VM SSH (https://pas.windows.net/CheckMyAccess/Linux/.default) requires MFA

In CLI beta, failure in az ssh vm (#17147) will cause the RT of ARM in MSAL token cache to be removed, making subsequence ARM commands like az group list fail.

Testing Guide

az login
az ssh vm -g cli-dev --vm-name ubuntu-vm
# Wait 1 hour so that AT expires
az group list

Additional context

The change will be merged to beta branch later.

@@ -51,7 +51,7 @@
'humanfriendly>=4.7,<10.0',
'jmespath',
'knack==0.8.0rc2',
'msal~=1.9',
'msal>=1.10.0,<2.0.0',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the stability of MSAL, we can relax it to <2.0.0. This is also what Azure Identity requires:

https://github.com/Azure/azure-sdk-for-python/blob/db4892a29c45fd9d65da1319d65ffd3269f13898/sdk/identity/azure-identity/setup.py#L77

"msal<2.0.0,>=1.7.0",

# Conflicts:
#	src/azure-cli-core/setup.py
#	src/azure-cli/requirements.py3.windows.txt
@yonzhan yonzhan added this to the S184 milestone Mar 11, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 11, 2021

Core

@jiasli jiasli merged commit cfd1c02 into Azure:dev Mar 11, 2021
@jiasli jiasli deleted the msal branch March 11, 2021 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants