--- id: msal version: "1.37.0" license: MIT license_treatment: permissive maintenance: active --- # msal — The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install msal uv add msal poetry add msal ## Description # Microsoft Authentication Library (MSAL) for Python | `dev` branch | Reference Docs | # of Downloads per different platforms | # of Downloads per recent MSAL versions | Benchmark Diagram | |:------------:|:--------------:|:--------------------------------------:|:---------------------------------------:|:-----------------:| [![Build status](https://github.com/AzureAD/microsoft-authentication-library-for-python/actions/workflows/python-package.yml/badge.svg?branch=dev)](https://github.com/AzureAD/microsoft-authentication-library-for-python/actions) | [![Documentation Status](https://readthedocs.org/projects/msal-python/badge/?version=latest)](https://msal-python.readthedocs.io/en/latest/?badge=latest) | [![Downloads](https://static.pepy.tech/badge/msal)](https://pypistats.org/packages/msal) | [![Download monthly](https://static.pepy.tech/badge/msal/month)](https://pepy.tech/project/msal) | [📉](https://azuread.github.io/microsoft-authentication-library-for-python/dev/bench/) The Microsoft Authentication Library for Python enables applications to integrate with the [Microsoft identity platform](https://aka.ms/aaddevv2). It allows you to sign in users or apps with Microsoft... ## AI interpretation — verify before relying MSAL enables Python applications to authenticate users and apps with Microsoft identities (Azure AD, Microsoft Accounts, Azure AD B2C) and obtain tokens for calling Microsoft APIs using OAuth2 and OpenID Connect. Verdict: MSAL is a production-stable, actively maintained authentication library from Microsoft with no known vulnerabilities, low install friction, and permissive licensing. It is well-suited for applications integrating with Microsoft identity services, though it requires prior registration with the Microsoft identity platform. [View on SkillFed](https://skillfed.io/packages/msal) · [View on PyPI](https://pypi.org/project/msal/)