Microsoft identity platform documentation
Use the Microsoft identity platform and our open-source authentication libraries to sign in users with Azure AD accounts. Protect your web APIs and access protected APIs like Microsoft Graph to work with your users' and organization's data.
sample
Code samples
Authentication and authorization for any application
Focus on documentation for the app you're building or extending with identity and access management (IAM) support by selecting its type.
Web app
A traditional, or "classic," web app whose code runs on a server, returning page data for the browser to render.
Web API
A RESTful web service accessed by applications or other web APIs, typically to work with data served by the API.
Desktop app
Applications with a user interface (UI) whose code runs on a user's desktop, laptop, or notebook computer.
Mobile app
Applications with a UI whose code runs on a user's phone, tablet, or other mobile device.
Background service, daemon, or script
An application or script without a UI that performs non-interactive tasks like server-to-server communication or scheduled jobs.
Get started
Quick access to documentation for adding core IAM features to your applications and guidance on the best practices for keeping your apps secure and available.
Sign in users
Test and deploy apps
Build for security and resilience
Microsoft authentication libraries on GitHub
The open-source Microsoft Authentication Library (MSAL) is hosted on GitHub. Built and supported by Microsoft, we recommend MSAL for any app that uses theMicrosoft identity platform for authentication and authorization.