{
 "kind": "tool",
 "slug": "msal",
 "path": "tools/msal/",
 "name": "MSAL for Python",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Microsoft Authentication Library for Azure AD and Microsoft account auth.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install msal"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/AzureAD/microsoft-authentication-library-for-python"
  },
  {
   "label": "Website",
   "href": "https://github.com/AzureAD/microsoft-authentication-library-for-python"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/AzureAD/microsoft-authentication-library-for-python"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 16, 2026",
   "note": "Latest GitHub release Sep 17, 2026. ",
   "src": "https://github.com/AzureAD/microsoft-authentication-library-for-python"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "12 projects",
   "status": "info",
   "sub": "#46 of 140 in its category",
   "note": "Dependency in 12 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What MSAL for Python does",
   "parts": [
    {
     "t": "prose",
     "text": "Microsoft Authentication Library for Azure AD and Microsoft account auth."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "MSAL for Python popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "59",
       "of": "/ 100",
       "l": "Gid Score, #1046 overall"
      },
      {
       "n": "41.3M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "981",
       "l": "GitHub stars"
      },
      {
       "n": "12",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How MSAL for Python is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "MSAL for Python is a dependency in 12 of the 6,254 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,063, Ethereum and EVM 1,777, 3D and games 3,120, agent frameworks and SDKs 13,629); counting those, it appears in 111 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is PyJWT (118 projects).",
      "Projects that use it most often also use python-dotenv (89.2%), Pydantic (84.7%), Requests (81.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "10 projects, 0.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 89.2% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 84.7% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 81.1% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 77.5% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 75.7% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 72.1% of its projects",
       "v": "aiohttp",
       "path": "tools/aiohttp/"
      },
      {
       "l": "In 71.2% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 70.3% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about MSAL for Python",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "NextAuth.js",
         "path": "tools/next-auth/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        },
        {
         "text": "Helmet",
         "path": "tools/helmet/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "MSAL for Python",
       "me": true,
       "facts": [
        "MIT",
        "Gid 59",
        "41.3M/wk"
       ]
      },
      {
       "name": "PyJWT",
       "why": "Python library for encoding and decoding JSON Web Tokens.",
       "path": "tools/pyjwt/",
       "facts": [
        "MIT",
        "Gid 75",
        "174M/wk"
       ]
      },
      {
       "name": "azure-identity",
       "why": "Microsoft Azure identity authentication library for Python.",
       "path": "tools/azure-identity-pypi/",
       "facts": [
        "MIT",
        "Gid 69",
        "33.5M/wk"
       ]
      },
      {
       "name": "Authlib",
       "why": "Ultimate Python library for building OAuth and OpenID Connect servers and clients.",
       "path": "tools/authlib/",
       "facts": [
        "BSD",
        "Gid 69",
        "34.6M/wk"
       ]
      }
     ],
     "more": "Compare MSAL for Python with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install msal"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for MSAL for Python yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi msal"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "58.6"
  ],
  [
   "Rank in category",
   "#46 of 140"
  ],
  [
   "GitHub",
   "AzureAD/microsoft-authentication-library-for-python"
  ],
  [
   "Last change",
   "Nov 16, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/azuread.png"
}