Azure Active Directory B2C documentation

Azure Active Directory B2C (Azure AD B2C) is a customer identity access management (CIAM) solution that enables you to sign up and sign in your customers into your apps and APIs. Your customers use their preferred social, enterprise, or local account identities to get single sign-on access to your applications. Learn how to use Azure AD B2C with our guide, tutorials, and code samples.

Authenticate and authorize for any app type

Select the app type that you want to build to access documentation focusing on it.

Single-page app (SPA)

A web application whose code is downloaded and run in the browser itself such as vanilla JavaScript, React and Angular.

Web app

A web app whose code runs on a server, returning page data for the browser to render such as Node.js, ASP.NET or Java.


A RESTful web service that is accessed by any app type or other web APIs, and is protected by Azure AD B2C.

Desktop app

Applications with a user interface (UI) whose code runs on a user's desktop, laptop, or notebook computer such as Windows OS.

Mobile app

Applications with a UI whose code runs on a user's phone, tablet, or other mobile device such as Android and iOS.

Back-end service or daemon

An application or script without a UI that performs non-interactive tasks like server-to-server communication or scheduled jobs.

Easy app integration with Microsoft Authentication Libraries (MSAL)

GitHub hosts the open-source Microsoft Authentication Library (MSAL). Microsoft builds and supports MSAL. Access and use our MSAL samples for the most popular programming languages and frameworks.