Contents

msal 1.31.0

0

The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Micros

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.

Stars: 806, Watchers: 806, Forks: 201, Open Issues: 64

The AzureAD/microsoft-authentication-library-for-python repo was created 8 years ago and the last code push was Yesterday.
The project is popular with 806 github stars!

How to Install msal

You can install msal using pip

pip install msal

or add it to a project with poetry

poetry add msal

Package Details

Author
Microsoft Corporation
License
MIT
Homepage
https://github.com/AzureAD/microsoft-authentication-library-for-python
PyPi:
https://pypi.org/project/msal/
Documentation:
https://msal-python.readthedocs.io/
GitHub Repo:
https://github.com/AzureAD/microsoft-authentication-library-for-python

Classifiers

No  msal  pypi packages just yet.

Errors

A list of common msal errors.

Code Examples

Here are some msal code examples and snippets.

GitHub Issues

The msal package has 64 open issues on GitHub

  • Lazy load dependencies
  • Add observability mechanisms
  • Add WAM Support to MSAL for Python, for cross-language consistency
  • Access token not being used from the cache with both Files.ReadWrite and User.ReadBasic.All scopes.
  • Update to quickstart SSO w/ python & MSAL for anyone using FastAPI instead of Flask
  • Use assertRaisesRegex instead of assertRaisesRegexp for Python 3.11 compatibility
  • MSAL can consider using lazy import for request, jwt
  • Support auth code flow in docker container
  • acquire_token_silent() acquires token via Cloud Shell's IMDS-like interface
  • WAM/Mid-tier integration
  • Drop Python 2 support
  • example for web api token validation
  • async support
  • Proof of Possession (POP) token request

See more issues on GitHub

Related Packages & Articles