Skip to content

Register your application with Azure Active Directory

Peter edited this page Oct 27, 2023 · 20 revisions

This page is for an older MSAL.NET version. See Microsoft Authentication Library for .NET for updated documentation.

Registering your application with the Microsoft identity platform for developers.

Before using MSAL.NET you will have to register your applications with the Microsoft Identity platform for developers (formerly named Azure AD v2.0)

Choosing between ADAL.NET (Azure AD v1.0) and MSAL.NET (Azure AD v2.0)

In most cases you'll want to use MSAL.NET, which is the latest generation of Microsoft authentication libraries. It will allow you to acquire tokens for users signing-in to your application with Azure AD (work and school accounts), Microsoft (personal) accounts (MSA) or Azure AD B2C. It will also soon support a direct connection to ADFS 2019 image

However, you still need to use ADAL.NET if your application needs to sign-in users with earlier versions of Active Directory Federation Services (ADFS). For more details see ADFS support

Moving from apps using ADAL.NET (Azure AD v1.0) to using MSAL.NET (Microsoft identity platform)

If you are already familiar with the Azure AD v1.0 endpoint (and ADAL.NET), you might want to read Comparing the Azure AD v2.0 endpoint with the v1.0 endpoint

See also ADAL.NET to MSAL.NET, which explains how to port an application using ADAL.NET to MSAL.NET

Getting started with MSAL.NET

Acquiring tokens

Desktop/Mobile apps

Web Apps / Web APIs / daemon apps

Advanced topics

News

FAQ

Other resources

Clone this wiki locally