Microsoft Authentication Library (MSAL) for Python makes it easy to authenticate to Azure Active Directory
The MSAL library for Python enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts and Microsoft Accounts using industry standard OAuth2 and OpenID Connect.