Microsoft Authentication Library (MSAL) for Python makes it easy to authenticate to Microsoft Entra ID. General docs are available here https://learn.microsoft.com/entra/msal/python/ Stable APIs are documented here https://msal-python.readthedocs.io. Questions can be asked on www.stackoverflow.com with tag "msal" + "python".
This PR was inspired by @jiasli 's effort in #418. Credit goes to Jiashuo!
This should prevent https://github.com/Azure/azure-cli/issues/10578 after Az CLI migrates to using MSAL Python.
Test cases is also added. MSAL Python's current CI does not use Windows platform, but I have manually tested them on Windows. It works.