Microsoft.Identity.Client 4.86.0

Microsoft Authentication Library (MSAL) for .NET

The MSAL library for .NET is part of the Microsoft identity platform for developers (formerly named Azure AD) v2.0. It enables you to acquire security tokens to call protected APIs. It uses industry standard OAuth2 and OpenID Connect. The library also supports Azure AD B2C.

Quick links:

Conceptual documentation Getting Started Sample Code API Reference Support Feedback

NuGet Package

NuGet

Version Lifecycle and Support Matrix

See Long Term Support policy for details.

The following table lists MSAL.NET versions currently supported and receiving security fixes.

Major Version Last Release Patch Release Date Support Phase End of Support
4.x NuGet Monthly Active Not planned.
✅Supported versions: from 4.77.1 to NuGet
⚠️Unsupported versions < 4.77.1.

Performance perspectives

Our documentation describes the approach to performance testing.

View some of the historical performance benchmark results in our dashboard.

Support SLA

MSAL.NET became Generally Available with MSAL.NET 3.0.8. Since MSAL.NET moved to version 4:

  • Major versions are supported for twelve months after the release of the next major version.
  • Minor versions older than N-1 are not supported.

Note Minor versions include bug fixes or features with non-breaking (additive) API changes. It is expected that applications using the library can upgrade through the IDE or CLI with no friction. We will not patch old minor versions of the library. When opening new issues, please confirm that you are using the latest minor version.

Using MSAL.NET

Where do I file issues

You can file new issues in this repository.

Community help and support

We use Stack Overflow with the community to provide support. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.

If you find a bug or have a feature request, please raise the issue on GitHub Issues.

Contribute

We welcome contributions and feedback. You can fork and clone the repo and start contributing now. Read our Contribution Guide for more information.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Security library

This library controls how users sign-in and access services. We recommend you always take the latest version of our library in your app when possible. We use semantic versioning so you can control the risk associated with updating your app. As an example, always downloading the latest minor version number (e.g. x.y.z) ensures you get the latest security and feature enhancements but our API surface remains the same. You can always see the latest version and release notes under the Releases tab of GitHub.

Security reporting

If you find a security issue with our libraries or services please report it to https://msrc.microsoft.com/report/vulnerability in as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bug Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly after receiving the information. We encourage you to get notifications of when security incidents occur by visiting the Microsoft Technical Security Notifications page and subscribing to Security Advisory Alerts.

Data collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

See the our telemetry documentation for an example of the telemetry collected by MSAL.NET.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Copyright © Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License").

Showing the top 20 packages that depend on Microsoft.Identity.Client.

Packages Downloads
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
164
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
166
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
168
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
170
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
173
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
177
Azure.Identity
This is the implementation of the Azure SDK Client Library for Azure Identity
182
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
164
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
166
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
173
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
170
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
174
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
176
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
184
Microsoft.Identity.Client.Extensions.Msal
This package contains extensions to Microsoft Authentication Library for .NET (MSAL.NET)
164
Microsoft.Identity.Client.Extensions.Msal
This package contains extensions to Microsoft Authentication Library for .NET (MSAL.NET)
169

The release notes are available at https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/releases and the roadmap at https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki#roadmap. To provide feedback, fill-in the survey at https://ncv.microsoft.com/JrXkdySi0m.

Version Downloads Last updated
4.86.0 5 07/09/2026
4.85.2 13 06/27/2026
4.85.1 15 06/25/2026
4.85.0 12 06/19/2026
4.84.2 13 06/06/2026
4.84.2-preview4-GetManagedIdentityCapabilitiesAsync 13 06/03/2026
4.84.2-preview3-mtls-pop-host-check 13 05/30/2026
4.84.2-preview2-orphaned-kg-certs 14 05/29/2026
4.84.2-preview 16 05/23/2026
4.84.1 16 05/20/2026
4.84.1-preview 20 05/16/2026
4.84.0 35 05/05/2026
4.83.4-preview1 42 04/03/2026
4.83.3 37 03/31/2026
4.83.1 33 03/11/2026
4.83.0 37 03/10/2026
4.83.0-preview-1 48 03/10/2026
4.82.1 51 02/10/2026
4.82.1-preview2 40 03/06/2026
4.82.1-preview 41 02/25/2026
4.82.0 45 02/03/2026
4.82.0-preview-2 44 01/30/2026
4.82.0-preview-1 57 01/16/2026
4.81.0 51 01/09/2026
4.81.0-preview-1 58 01/31/2026
4.80.0 56 01/06/2026
4.79.2 89 11/18/2025
4.79.1 80 11/14/2025
4.79.0 87 11/12/2025
4.78.1-preview1 71 10/25/2025
4.78.0 123 10/24/2025
4.77.2-preview1 73 11/01/2025
4.77.1 103 09/25/2025
4.77.0 100 09/11/2025
4.76.2-preview 82 09/13/2025
4.76.1-preview 108 09/11/2025
4.76.0 93 08/16/2025
4.75.0 110 08/15/2025
4.74.1 102 07/21/2025
4.74.1-preview2 102 08/03/2025
4.74.1-preview1 100 07/28/2025
4.74.0 98 07/15/2025
4.74.0-pop-attestation-2 100 09/03/2025
4.74.0-pop-attestation-1 103 09/03/2025
4.73.1 106 06/27/2025
4.73.0 112 06/19/2025
4.73.0-slc-preview 86 06/25/2025
4.73.0-preview 108 05/18/2025
4.73.0-pop-assertion-preview 94 08/13/2025
4.72.3-slc-preview 125 07/02/2025
4.72.1 116 05/23/2025
4.72.1-preview 130 05/14/2025
4.72.0 108 05/13/2025
4.71.2-preview 112 04/22/2025
4.71.1 126 04/25/2025
4.71.1-preview 123 04/22/2025
4.71.0 108 04/19/2025
4.70.2 115 04/10/2025
4.70.1 129 04/05/2025
4.70.1-preview 113 03/30/2025
4.70.0 141 03/30/2025
4.69.1 124 03/30/2025
4.68.0 111 03/30/2025
4.67.2 135 03/30/2025
4.67.1 126 01/13/2025
4.67.0 133 01/11/2025
4.66.4-preview 120 03/30/2025
4.66.3-preview 130 01/11/2025
4.66.2 125 11/15/2024
4.66.2-preview 132 12/21/2024
4.66.1 128 10/26/2024
4.66.0 144 10/21/2024
4.65.3-preview 120 10/21/2024
4.65.0 139 10/02/2024
4.64.2-preview 123 09/19/2024
4.64.1 132 09/21/2024
4.64.0 147 09/01/2024
4.63.0 110 08/19/2024
4.62.0 146 07/23/2024
4.62.0-preview 144 07/23/2024
4.61.3 158 07/23/2024
4.61.2 164 07/23/2024
4.61.1 138 07/23/2024
4.61.0 152 07/23/2024
4.60.4 135 07/23/2024
4.60.3 137 07/23/2024
4.60.2 159 07/23/2024
4.60.1 137 07/23/2024
4.60.0 145 07/23/2024
4.59.1 150 07/23/2024
4.59.0 146 07/23/2024
4.58.1 152 07/23/2024
4.58.0 163 07/23/2024
4.57.0 170 07/23/2024
4.56.0 167 07/23/2024
4.55.0 148 07/23/2024
4.54.1 148 07/23/2024
4.54.0 153 07/22/2024
4.53.0 157 07/23/2024
4.52.0 144 07/23/2024
4.51.0 160 07/23/2024
4.50.0 175 07/23/2024
4.49.1 146 07/23/2024
4.48.1 149 07/23/2024
4.48.0 158 07/23/2024
4.47.2 145 07/23/2024
4.47.1 161 07/23/2024
4.47.0 168 07/23/2024
4.46.2 171 07/23/2024
4.46.1 145 07/23/2024
4.46.0 130 07/23/2024
4.46.0-preview2 144 07/23/2024
4.45.0 173 02/19/2024
4.44.0 129 07/13/2024
4.43.2 152 07/23/2024
4.43.1 142 07/23/2024
4.43.0 173 07/21/2024
4.42.1 175 07/23/2024
4.42.0 147 07/23/2024
4.41.0 151 07/23/2024
4.40.0 172 07/23/2024
4.39.0 163 07/23/2024
4.38.0 155 07/23/2024
4.37.0 148 07/23/2024
4.37.0-preview 174 07/23/2024
4.36.2 169 07/23/2024
4.36.1 143 07/23/2024
4.36.0 151 07/23/2024
4.35.1 154 07/23/2024
4.35.0 159 07/23/2024
4.34.0 159 07/23/2024
4.33.0 139 07/23/2024
4.32.1 156 07/23/2024
4.32.0 160 07/23/2024
4.31.0 138 07/23/2024
4.30.1 144 07/23/2024
4.30.0 161 07/23/2024
4.29.0 145 07/23/2024
4.28.1 155 07/23/2024
4.28.0 143 07/23/2024
4.27.1 156 07/23/2024
4.27.0 145 07/23/2024
4.26.0 150 07/23/2024
4.25.0 127 07/23/2024
4.24.0 148 07/23/2024
4.23.0 131 07/23/2024
4.22.0 137 07/23/2024
4.21.1 171 02/04/2024
4.21.0 152 07/23/2024
4.20.1 153 07/23/2024
4.20.0 146 07/23/2024
4.20.0-wampreview1 165 07/23/2024
4.19.0 152 07/23/2024
4.18.0 147 07/23/2024
4.17.2 143 07/23/2024
4.17.1 161 07/23/2024
4.17.0 167 07/23/2024
4.16.1 148 07/23/2024
4.16.0 155 07/23/2024
4.15.0 156 07/23/2024
4.14.0 134 07/23/2024
4.13.0 156 07/23/2024
4.12.0 161 07/23/2024
4.11.0 138 07/23/2024
4.10.0 139 07/23/2024
4.9.0 144 07/23/2024
4.8.2 145 07/23/2024
4.8.1 148 07/23/2024
4.8.1-preview1 160 07/23/2024
4.7.1 144 07/23/2024
4.7.0 164 07/23/2024
4.6.0 145 07/23/2024
4.5.1 146 07/23/2024
4.5.0 158 07/23/2024
4.4.0 152 07/23/2024
4.3.1 155 07/23/2024
4.3.0 171 07/23/2024
4.2.1 152 07/23/2024
4.2.0 150 07/23/2024
4.1.0 161 07/23/2024
4.0.0 154 07/23/2024
3.0.9 141 07/22/2024
3.0.8 152 07/23/2024
3.0.6-preview 148 07/23/2024
3.0.5-preview 139 07/23/2024
3.0.4-preview 167 07/23/2024
3.0.3-preview 167 07/23/2024
3.0.2-preview 187 07/23/2024
3.0.1-preview 139 07/23/2024
3.0.0-preview 161 07/23/2024
2.7.1 156 07/23/2024
2.7.0 158 07/20/2024
2.6.2 144 07/23/2024
2.6.1 174 07/23/2024
2.6.0-preview 140 07/23/2024
2.5.0-preview 152 07/23/2024
2.4.1-preview 154 07/23/2024
2.4.0-preview 147 07/23/2024
2.3.1-preview 148 07/23/2024
2.3.0-preview 145 07/23/2024
2.2.1-preview 148 07/23/2024
2.2.0-preview 147 07/23/2024
2.1.0-preview 167 07/23/2024
2.0.1-preview 166 07/23/2024
2.0.0-preview 160 07/23/2024
1.1.4-preview0002 141 07/23/2024
1.1.3-preview0012 159 07/23/2024
1.1.2-preview0008 136 07/23/2024
1.1.1-preview0040 127 07/23/2024
1.1.0-preview 169 07/23/2024
1.0.304142221-alpha 143 07/23/2024
1.0.304142201-alpha 151 07/23/2024
1.0.303282006-alpha 143 07/23/2024