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

Update Azure.Identity to 1.4 and MSAL lib to 4.30.1 #14977

Merged
merged 3 commits into from
May 14, 2021
Merged

Update Azure.Identity to 1.4 and MSAL lib to 4.30.1 #14977

merged 3 commits into from
May 14, 2021

Conversation

erich-wang
Copy link
Member

@erich-wang erich-wang commented May 13, 2021

Description

Upgrade Azure.Identity and MSAL lib to latest official version including token cache refactoring

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • the markdown help files have been regenerated using the commands listed here

isra-fel
isra-fel previously approved these changes May 13, 2021
Copy link
Member

@isra-fel isra-fel left a comment

Choose a reason for hiding this comment

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

Approve with one open question

{
//There's no official error message for requiring MFA permission, so have to compare UGLY error message
if(msalUiRequiredException.ErrorCode == "invalid_grant" &&
msalUiRequiredException.Message.Contains("you must use multi-factor authentication to access"))
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible the error message is localized into other languages that this assertion will fail?
Can we use the error code "AADSTS50076" to identify this kind of error instead?

Copy link
Member

Choose a reason for hiding this comment

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

Neither error message nor error code should be used to determine if interactive authentication should be invoked. See the discussion at AzureAD/microsoft-authentication-library-for-python#701.

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